3.5.3 Call
Získání aktuálního nastavení hovorů
URL: | https://{{ip_addr}}/api/v1/hipmo/settings/call |
HTTP Metoda: | GET |
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby.
|
Response data: | { "data": { "autoCallPickup": false, "autoCallPickupDelay": 0, "customRingtone": false, "isEarlyMediaEnabled": true, "ringtone": { "name": "Flutey Phone", "uri": "content://media/internal/audio/media/175" } } } |
Nastavení sekce
URL: | https://{{ip_addr}}/api/v1/hipmo/settings/call |
HTTP Metoda: | PUT |
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby. |
Request body: | { "ringtone": { "uri": "<string>", "name": "<string>" }, "customRingtoneData": "<string>", "autoCallPickup": "<boolean>", "autoCallPickupDelay": "<integer>", "isEarlyMediaEnabled": "<boolean>" }
|
Response data: | { "data": { "autoCallPickup": false, "autoCallPickupDelay": 0, "customRingtone": false, "isEarlyMediaEnabled": true, "ringtone": { "name": "Flutey Phone", "uri": "content://media/internal/audio/media/175" } } } |
Získání seznamu vyzváněcích tónů
URL: | https://{{ip_addr}}/api/v1/hipmo/settings/call/ringtones |
HTTP Metoda: | GET |
Response code: | Standardní HTTP response code, ošetřuje syntaktické chyby.
|
Response data: | { "data": { "ringtones": [ { "name": "None", "uri": "NONE" }, { "name": "Andromeda", "uri": "content://media/internal/audio/media/103" }, ... { "name": "Zeta", "uri": "content://media/internal/audio/media/206" } ] } } |