查询分机语音信箱问候语列表

查询分机的语音信箱问候语列表。

请求 URL

GET {base_url}/{api_path}/extension_vm_greeting/list?access_token={access_token}

请求参数

参数 是否必填 类型 说明
page Integer 定义显示第几个页面。
page_size Integer 定义每页显示几项查询结果。
extension String 分机号码。
注: 可使用 搜索特定分机 接口查询分机号码。

响应参数

参数 类型 说明
errcode Integer 返回错误码。
  • 0:请求成功。
  • 非零值:请求失败。
注: 更多错误码和错误信息说明,请参见 错误码 & 错误信息
errmsg String 返回信息。
  • SUCCESS:请求成功。
  • FAILURE:请求失败。
total_number Integer 分机的语音信箱问候语的总数。
greeting_list Array <Voicemail_Greeting> 每条语音信箱问候语的基本信息。
Voicemail_Greeting
参数 类型 说明
id Integer 语音信箱问候语的唯一 ID。
module String 语音信箱问候语所属的模块。
  • extension
number String 语音信箱问候语所属的分机的号码。
file String 语音信箱问候语的文件名。
suffix String 语音信箱问候语的文件扩展名。
  • .wav
  • .WAV
type String 语音信箱问候语类型。
  • record:通过分机录制或从本地上传的语音信箱问候语。
  • tts:通过文本生成语音功能生成的语音信箱问候语。
real_filename String 语音信箱问候语的完整文件名 (包含文件扩展名)。

示例

请求示例

GET /openapi/v1.0/extension_vm_greeting/list?access_token=Av4ZxfcjqeHAWvNK9IeISDC6TnmiTpra&&extension=3200 HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com
响应示例
HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "total_number": 3,
    "greeting_list": [
        {
            "id": 20,
            "module": "extension",
            "number": "3200",
            "file": "vm_end",
            "suffix": ".wav",
            "type": "tts",
            "real_filename": "vm_welcome_001.wav"
        },
        {
            "id": 19,
            "module": "extension",
            "number": "3200",
            "file": "vm_welcome.wav",
            "suffix": ".wav",
            "type": "record",
            "real_filename": "vm_welcome_002.wav"
        },
        {
            "id": 17,
            "module": "extension",
            "number": "3200",
            "file": "Artificial.wav",
            "suffix": ".wav",
            "type": "record",
            "real_filename": "Artificial.wav"
        }
    ]
}