Retrieve photo
GET/api/photo/by-url
Retrieve user uploaded photo by passing in the url.
Request
Query Parameters
Header Parameters
Partner Id
Client Id
Client Secret
Responses
- 200
- 401
- 403
- 404
- 500
Photo object matching url.
- application/json
- Schema
- Example (from schema)
Schema
Id of the owner
URL of the photo
Device identifier of the device on which photo was taken
Manufacturer of the device on which photo was taken
Model of the device on which photo was taken
OS of the device on which photo was taken
The timestamp at which the photo was taken
Latitude of the location at which photo was taken
Longitude of the location at which photo was taken
{
"userId": "string",
"photoUrl": "string",
"deviceIdentifier": "string",
"deviceManufacturer": "string",
"deviceModel": "string",
"deviceOS": "string",
"takenOn": "string",
"latitude": 0,
"longitude": 0
}
Authorization error e.g. due to an invalid or missing API keys.
Forbidden. Possible error codes
-
ERROR_NO_PERMISSIONS_TO_RESOURCE
- application/json
- Schema
- Example (from schema)
Schema
Error code
A verbose error message
{
"error_code": "string",
"error_message": "string"
}
Photo not found or User owning the photo not found.. Possible error codes
-
ERROR_USER_NOT_FOUND
-
ERROR_PHOTO_NOT_FOUND
- application/json
- Schema
- Example (from schema)
Schema
Error code
A verbose error message
{
"error_code": "string",
"error_message": "string"
}
Internal error. Possible error codes
-
INTERNAL_SERVER_ERROR
- application/json
- Schema
- Example (from schema)
Schema
Error code
A verbose error message
{
"error_code": "string",
"error_message": "string"
}