语音通话 VOICECALL-语音回呼场景API:接口示例

时间:2024-11-04 21:27:20

接口示例

  • 请求示例
    POST /rest/httpsessions/click2Call/v2.0  HTTP1.1
    
    content-type: application/json;charset=UTF-8
    authorization: AKSK realm="SDP",profile="UsernameToken",type="Appkey"
    x-aksk: UsernameToken Username="ZRBRz4bAXoFgEH7o4Ew308eXc1RA",PasswordDigest="****",Nonce="ac1c911c4792492687f8f6b2264a491e",Created="2018-05-26T00:35:30Z"
    Content-Length:xx
    { 
    "displayNbr":"+86755****8888", 
    "callerNbr":"+86137****0001", 
    "calleeNbr":"+86137****0002", 
    "displayCalleeNbr":"+86755****8888", 
    "userData":"cwgtest" 
    }
  • 响应示例
    HTTP/1.1 200 OK 
    Content-Type: application/json;charset=UTF-8 
    { 
    "resultcode":"0", 
    "resultdesc":"Success", 
    "sessionId":"1202_566_0_20161228102743@callenabler.home1.com" 
    }     
support.huaweicloud.com/api-VoiceCall/rtc_05_0006.html