Retrieve a list of photos for a user (by id)
GET/api/users/by-id/:id/photos
Retrieve a list of photos for a user. The user is identified by the id of the user. If the caller does not have access to the user throws an exception.
Request
Path Parameters
Query Parameters
Default value: dateUploaded
Default value: desc
Header Parameters
Partner Id
Client Id
Client Secret
Responses
- 200
- 401
- 403
- 404
- 500
List of photos uploaded by user.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
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"
}
User not found. Possible error codes
-
ERROR_USER_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"
}