Targets image list | GET /targets/infos
Retrieves the list of target images in the gallery. You can specify the corresponding pagination content using the pageNum and pageSize parameters.
Action
GET /targets/infos
Authentication
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 100 |
Response fields
| Field | Description |
|---|---|
| statusCode | Status code 0 indicates correct authentication. For more information, see Status codes |
| result | Array containing multiple target image structures |
| timestamp | Server-side time when the response is returned. Using Unix timestamp format in milliseconds |
Error codes
See Status codes and complete 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,
}