Get voicemail greeting of user
This request returns the voicemail greeting of the user.
Resource
GET /me/phone/settings/voicemail_greeting
Parameters
Name | Type | Description |
---|---|---|
|
[json|stream] |
if stream is specified then the attachments contents are streamed to the client. |
Payload
None
Response
The Attachment field contentsB64String
contains the attachment’s data in Base64 econding.
Context
Authorization |
User |
Errors
HTTP code | Xelion code | Description |
---|---|---|
500 |
11000 |
If the attachment exceeds the maximum size or another server error occurred. See error message for more information. |
Example
Request
GET https://xelion.nl/api/v1/master/me/phone/settings/voicemail_greeting
Response
{
"object": {
"originalLocation": "xcc_audio17098878868184063897.wav",
"mimeType": "audio/wav",
"contentsB64String": "UklGRpBrAABXQVZFZm10IBAAAAABAAEAQ",
"hasThumbnail": false,
"size": 27544,
"commonName": "xcc_audio17098878868184063897.wav",
"oid": "2173865",
"objectType": "Attachment"
}
}
Stream the contents
Request
GET https://xelion.nl/api/v1/master/me/phone/settings/voicemail_greeting?response_type=stream
headers
Content-Type: audio/wav;charset=utf-8 Content-Disposition: attachment; filename=xcc_audio17098878868184063897.wav ...
body
xcc_audio17098878868184063897.wav