Elenco di target image in una image library | GET /targets/infos
Ottiene l'elenco di target image in una image library. È possibile usare i parametri pageNum e pageSize per passare al contenuto paginato corrispondente.
Action
GET /targets/infos
Autenticazione
Http Header
Content-Type=application/json
HTTP Header: Authorization, quando si usa autenticazione API Key Token
Parametri request
| Field | Type | Required | Description |
|---|---|---|---|
| pageNum | int | No | Numero pagina. Default 1 |
| pageSize | int | No | Dimensione pagina. Default 5, massimo 100 |
Campi response
| Field | Description |
|---|---|
| statusCode | Codice stato. 0 indica autenticazione corretta. Per altro, vedere Codici stato |
| result | Array di più strutture target image |
| timestamp | Ora lato server quando viene restituita la response. Usa formato Unix timestamp, in millisecondi |
Codici errore
Vedere Codici stato ed elenco codici errore
Esempio request
GET /targets/infos?pageNum=2×tamp=xxx&appKey=xxx&signature=xxx
HTTP/1.1
Host:
Date: Mon, 1 Jan 2018 00:00:00 GMT
Esempio response
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,
}