Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API Photos

An asset manager's best friend
Revision as of 16:48, 22 December 2023 by Dave (talk | contribs) (Created page with "Each data object returned from the Data endpoint will contain a comma separated list as the value for the key "Photos". These are the ids of the photos. You can download a photo from a dictionary using the following example: '''curl -X GET -H "Content-Type: application/json" -H "authorization: <api_key>" "<nowiki>https://api.thedog.io/photo/{Dictionary_no}/{Photo_no}</nowiki>" -o photo.jpg''' The response will be the file '''photo.jpg'''")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Each data object returned from the Data endpoint will contain a comma separated list as the value for the key "Photos". These are the ids of the photos.

You can download a photo from a dictionary using the following example:

 curl -X GET -H "Content-Type: application/json" -H "authorization: <api_key>" "https://api.thedog.io/photo/{Dictionary_no}/{Photo_no}" -o photo.jpg

The response will be the file photo.jpg