3.5.3 Call
Getting current call settings
URL: | https://{{ip_addr}}/api/v1/hipmo/settings/call |
HTTP method: | GET |
Response code: | Standard HTTP response code, treating syntactic errors.
|
Response data: | { "data": { "autoCallPickup": false, "autoCallPickupDelay": 0, "customRingtone": false, "isEarlyMediaEnabled": true, "ringtone": { "name": "Flutey Phone", "uri": "content://media/internal/audio/media/175" } } } |
Section setting
URL: | https://{{ip_addr}}/api/v1/hipmo/settings/call |
HTTP method: | PUT |
Response code: | Standard HTTP response code, treating syntactic errors. |
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" } } } |
Getting list of ringtones
URL: | https://{{ip_addr}}/api/v1/hipmo/settings/call/ringtones |
HTTP method: | GET |
Response code: | Standard HTTP response code, treating syntactic errors.
|
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" } ] } } |