3.6.1 Buttons
Získání seznamu tlačítek
Získá aktuální seznam dostupných tlačítek (nastavitelných pozic pro spouštění aplikací).
URL: | https://{{ip_addr}}/api/v1/homescreen/buttons |
HTTP Metoda: | GET |
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby. |
Response data: | {
"data": {
"buttons": [
{
"application": {
"id": "com.android.documentsui",
"name": "File Manager"
},
"icon": 6,
"id": 1,
"label": "File Manager",
"position": 1
},
{
"application": {
"id": "com.android.browser",
"name": "Browser"
},
"icon": 3,
"id": 2,
"label": "Browser",
"position": 2
},
{
"application": {
"id": "cz.nn.helios_mobile",
"name": "2N® IP Mobile"
},
"icon": 8,
"id": 3,
"label": "Intercoms",
"position": 3
},
{
"application": {
"id": "com.android.gallery3d",
"name": "Gallery"
},
"icon": 7,
"id": 4,
"label": "Gallery",
"position": 4
}
]
}
}
|
Vytvoření nového tlačítka
URL: | https://{{ip_addr}}/api/v1/homescreen/buttons |
HTTP Metoda: | POST |
| Request body: | {
"id": "<integer>",
"position": "<integer>",
"label": "<string>",
"icon": "<integer>",
"application": {
"id": "<string>",
"name": "<string>",
"version": "<string>",
"installDate": "<string>"
}
}
|
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby.
|
Response data: | {
"data": {
"application": {
"id": "com.android.gallery3d",
"installDate": "1/1/09",
"name": "Gallery",
"version": "1.1.40030 (40030)"
},
"icon": 7,
"id": 6,
"label": "test",
"position": 5
}
}
|
