隐私保护通话 PRIVATENUMBER-AXB模式绑定接口:接口示例

时间:2024-12-30 16:28:46

接口示例

接口示例仅供参考,请以实际消息为准。

  • 请求示例
    POST /rest/caas/relationnumber/partners/v1.0  HTTP1.1 
    
    content-type: application/json;charset=UTF-8
    authorization: AKSK realm="SDP",profile="UsernameToken",type="Appkey"
    x-aksk: UsernameToken Username="************",PasswordDigest="*************",Nonce="ac1c911c4792492687f8f6b2264a491e",Created="2018-05-26T00:35:30Z"
    content-length:xx 
    
    {
    "callerNum":"+86138****0021", 
    "relationNum":"+86138****6666", 
    "calleeNum":"+86138****0023",
    "callDirection":0,
    "duration":0,
    "preVoice": {
            "callerHintTone": "callerHintTone.wav",
            "calleeHintTone": "calleeHintTone.wav"
            },
    "maxDuration":0
    }
  • 响应示例
    HTTP/1.1 200 OK 
    Content-Type: application/json;charset=utf-8 
    Content-Length: xx 
    
    { 
    "resultcode":"0", 
    "resultdesc":"Success" ,
    "subscriptionId":"****",
    "relationNum":"+86138****6666", 
    "callDirection":0,
    "duration":0,
    "maxDuration":0
    }
support.huaweicloud.com/api-PrivateNumber/privatenumber_02_0002.html