查询群语音信箱列表
查询群语音信箱列表。
请求 URL
GET {base_url}/{api_path}/vm_group/list?access_token={access_token}
请求参数
| 参数 | 是否必填 | 类型 | 说明 |
|---|---|---|---|
| page | 否 | Integer | 定义显示第几个页面。 |
| page_size | 否 | Integer | 定义每页显示几项查询结果。 |
| sort_by | 否 | String | 定义排序字段。 取值范围
|
| order_by | 否 | String | 定义显示顺序。 取值范围:
|
响应参数
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | 返回错误码。
注: 更多错误码和错误信息说明,请参见 错误码 & 错误信息。
|
| errmsg | String | 返回信息。
|
| total_number | Integer | 群语音信箱的总数。 |
| vm_group_list | Array <Group_Voicemail> | 每个群语音信箱的基本信息。 |
- Group_Voicemail
-
参数 类型 说明 id Integer 群语音信箱 ID。 type String 群语音信箱类型。 ring_group:响铃组。queue:队列。custom:自定义。
number String 群语音信箱号码。 name String 群语音信箱名称。 mode String 群语音信箱模式。 broadcast:语音留言未存储在群语音信箱中,而是直接转发到每个成员个人的分机语音信箱中。share:语音留言存储在群语音信箱中,所有成员共享留言信息。
member_list Array <Group_Voicemail_Member 群语音信箱中每个成员的信息。 messages Object <Voicemail_Message> 群语音信箱中留言的信息。
示例
请求示例
GET /openapi/v1.0/vm_group/list?access_token=UIFGAl0HUpg8i78V0Z6nCx5YghKqE235 HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com响应示例HTTP/1.1 200 OK { "errcode": 0, "errmsg": "SUCCESS", "total_number": 3, "vm_group_list": [ { "id": 1, "type": "ring_group", "number": "6300", "name": "Technical Support Team 2", "mode": "share", "member_list": [ { "text": "Evelyn", "text2": "3200", "value": "3071", "type": "extension" }, { "text": "Dave Haris", "text2": "3202", "value": "3074", "type": "extension" }, { "text": "Terrell Smith", "text2": "3021", "value": "3075", "type": "extension" } ], "messages": { "unread": 12, "total": 30 } }, { "id": 2, "type": "custom", "number": "6100", "name": "6100", "mode": "share", "member_list": [ { "text": "Evelyn", "text2": "3200", "value": "3071", "type": "extension" } ], "messages": { "unread": 5, "total": 20 } }, { "id": 3, "type": "queue", "number": "6401", "name": "6401", "mode": "share", "member_list": [ { "text": "Dave Haris", "text2": "3202", "value": "3074", "type": "extension" }, { "text": "Terrell Smith", "text2": "3021", "value": "3075", "type": "extension" } ], "messages": { "unread": 0, "total": 10 } } ] }