Votes and Favourites
Create and list votes or favourites for images.
List favourites
curl -H "x-api-key: YOUR-API-KEY" https://api.thedogapi.com/v1/favourites
Create a favourite
curl -X POST -H "Content-Type: application/json" -H "x-api-key: YOUR-API-KEY" \
-d '{"image_id": "BJa4kxc4X"}' \
https://api.thedogapi.com/v1/favourites
Vote on an image
curl -X POST -H "Content-Type: application/json" -H "x-api-key: YOUR-API-KEY" \
-d '{"image_id": "BJa4kxc4X", "value": 1}' \
https://api.thedogapi.com/v1/votes
Get a favourite
curl -H "x-api-key: YOUR-API-KEY" https://api.thedogapi.com/v1/favourites/FAVOURITE_ID
Delete a favourite
curl -X DELETE -H "x-api-key: YOUR-API-KEY" https://api.thedogapi.com/v1/favourites/FAVOURITE_ID
List votes
curl -H "x-api-key: YOUR-API-KEY" https://api.thedogapi.com/v1/votes
Get a vote
curl -H "x-api-key: YOUR-API-KEY" https://api.thedogapi.com/v1/votes/VOTE_ID
Delete a vote
curl -X DELETE -H "x-api-key: YOUR-API-KEY" https://api.thedogapi.com/v1/vote/VOTE_ID