3.6.1.1 Button
Get the selected button setting
URL: | https://{{ip_addr}}/api/v1/homescreen/buttons/{{id}} |
HTTP method: | GET |
Path variable: | id – button ID, refer to request 3.6.1 Buttons |
Response code: | Standard HTTP response code, treating syntactic errors. |
Response data: | { "data": { "application": { "id": "com.android.documentsui", "name": "File Manager" }, "icon": 6, "id": 1, "label": "File Manager", "position": 1 } } |
Set the selected button
URL: | https://{{ip_addr}}/api/v1/homescreen/buttons/{{id}} |
HTTP method: | PUT |
Path variable: | id – button ID, refer to request 3.6.1 Buttons |
Request body: | { "id": "<integer>", "position": "<integer>", "label": "<string>", "icon": "<integer>", "application": { "id": "<string>", "name": "<string>", "version": "<string>", "installDate": "<string>" } } |
Response code: | Standard HTTP response code, treating syntactic errors. |
Response data: | { "data": { "application": { "id": "com.android.gallery3d", "installDate": "1/1/09", "name": "Gallery", "version": "1.1.40030 (40030)" }, "icon": 7, "id": 4, "label": "test", "position": 5 } } |
Remove button
URL: | https://{{ip_addr}}/api/v1/homescreen/buttons/{{id}} |
HTTP method: | DELETE |
Path variable: | id – button ID, refer to request 3.6.1 Buttons |
Request body: | { "id": "<integer>", "position": "<integer>", "label": "<string>", "icon": "<integer>", "application": { "id": "<string>", "name": "<string>", "version": "<string>", "installDate": "<string>" } } |
Response code: | Standard HTTP response code, treating syntactic errors. |