Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

URI: https://api.cloudcard.us/photo/download

HTTP Method: GET

Required Headers: X-Auth-Token (see: Authentication)

Example HTTP Request Body
EMPTY

The response will depend on your organization's downloadStrategy

Download Strategy: ZIP_READY_FOR_DOWNLOAD or ZIP_DOWNLOADED

Example Response if APPROVED Photos Exist
303 SEE OTHER

{
    "link": "http://{api url}/api/photos/download/zip?token=sMo7fflhBijq0mOlotsOfRandomLettersAndNumbersmb8iAaKLtj0vrhm05"
}

You will have to send a GET request to the URL in the link attribute to download the zip file and move the photos to the DOWNLOADED status.

Example Response if No APPROVED Photos Exist
204 NO CONTENT

Download Strategy: EXTERNAL_READY_FOR_DOWNLOAD or EXTERNAL_DOWNLOADED

Example Response if Photos Were Updated
200 OK

{
    "message": "All Approved Photos have been marked ready for download."
}
Example Response if No APPROVED Photos Exist
204 NO CONTENT

  • No labels