Target image list in an image library | GET /targets/infos
Get the list of target images in an image library. You can use the pageNum and pageSize parameters to jump to the corresponding paginated content.
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 1 |
| pageSize | int | No | Page size. Default 5, maximum 100 |
Response fields
| Field | Description |
|---|---|
| statusCode | Status code. 0 indicates authentication is correct. For more, see Status codes |
| result | 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 code list
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,
}