语音通话 VOICECALL-语音验证码场景API:接口示例

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

接口示例

  • 请求示例
    POST /rest/httpsessions/callVerify/v1.0 HTTP/1.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":"+8675528****88", 
    "calleeNbr":"+86189****0007", 
    "languageType":2, 
    "preTone":"welcome.wav", 
    "verifyCode":"12345678", 
    "times":3, 
    "userData":"cwgtest" 
    }
  • 响应示例
    HTTP/1.1 200 OK 
    Content-Type: application/json;charset=UTF-8 
    
    { 
    "resultcode":"0", 
    "resultdesc":"Success",
    "sessionId":"1200_366_0_20161228102743@callenabler.home1.com"
    }
support.huaweicloud.com/api-VoiceCall/rtc_05_0016.html