===== 加入语音群聊 =====
请通过HTTPS POST方式提交请求,云之讯平台收到请求后,向该成员发起呼叫,呼叫成功并接听后将加入该语音群聊。
==== 1.1 请求 ====
**请求地址**
/{SoftVersion}/Accounts/{accountSid}/room/roomJoin
**请求包头**
详情请查阅统一请求包头,并使用开发者账号进行验证。
**请求包体**
^属性 ^类型 ^约束 ^说明 |
|appId |String |必选 |应用Id|
|numberlist |String |可选|群成员列表,json数组|
|roomId |String |必选|语音群聊id|
|userData |String |可选 |用户自定义透传字段|
|sn |String |必选 |语音群聊唯一序列|
**XML请求示例**
POST/2014-06-30/Accounts/e03bc9106c6ed0eaebfce8c368fdcd48/Calls/voiceCode.xml?sig=841D35E63BB81C1D13918B4DD6CD988E
Host:api.ucpaas.com
Accept:application/xml
Content-Type:application/xml;charset=utf-8
Authorization:ZTAzYmM5MTA2YzZlZDBlYWViZmNlOGMzNjhmZGNkNDg6MjAxNDA2MjMxODQ1MjM=
e462aba25bc6498fa5ada7eefe1401b7
[{"clientNumber":"71505000152331","phone":"13111111111"}]
000355274cb5@4654
1
1
**JSON请求示例**
POST/2014-06-30/Accounts/e03bc9106c6ed0eaebfce8c368fdcd48/Calls/voiceCode?sig=4D3C2549D3A487841CB3D84EA7421FCD
Host:api.ucpaas.com
Accept:application/json
Content-Type:application/json;charset=utf-8
Authorization:ZTAzYmM5MTA2YzZlZDBlYWViZmNlOGMzNjhmZGNkNDg6MjAxNDA2MjMxODQ3MzQ=
{
"room" : {
"appId" : "e462aba25bc6498fa5ada7eefe1401b7",
"roomId" : "000355274cb5@4654",
"numberlist" : "[{"clientNumber":"71505000152331","phone":"13111111111"}]",
"userData" : "11",
"sn" : "1"
}
}
==== 1.2 响应 ====
**响应包体**
^属性 ^类型 ^约束 ^说明 |
|respCode |String |必选 |请求状态码,取值000000(成功)|
**XML响应示例**
000000
**JSON响应示例**
{
"resp" : {
"respCode" : "000000"
}