Gallery target image list | GET /targets/infos
Get the list of target images in the gallery. You can use the pageNum and pageSize parameters to navigate to the corresponding paginated content.
Action
GET /targets/infos
Authentication
Required
HTTP header
Content-Type=application/json
HTTP Header: Authorization (when using API Key Token authentication)
Request parameters
| Field | Type | Required | Description |
|---|---|---|---|
| pageNum | int | No | Page number. Default is 1 |
| pageSize | int | No | Page size. Default is 5, maximum is 100 |
Response fields
| Field | Description |
|---|---|
| statusCode | Status code 0 indicates successful authentication. For more details, refer to Status Codes |
| result | An array of multiple target image structures |
| timestamp | Server-side time when the response is returned. Uses Unix timestamp format in milliseconds |
Error codes
See Status Codes and Error Codes
Request example
GET /targets/infos?pageNum=2×tamp=xxx&appKey=xxx&signature=xxx
HTTP/1.1
Host:
Date: Mon, 1 Jan 2018 00:00:00 GMT
Response example
HTTP/1.1 200 OK
Content-Type: application/json
{
"statusCode": 0,
"result": {
"targets":
[
{
"targetId":"e61db301-e80f-4025-b822-9a00eb48d8d2",
"name": "easyar",
"size": "5",
"meta": "496fbbabc2b38ecs3460a...",
"type": "ImageTarget",
"appKey":"xxxxx",
"active":"1",
"modified": 1498108419905
}
]
},
"timestamp": 1514736000000,
}