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

时间:2024-11-12 09:38:07

接口示例

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

  • 请求示例
    POST /rest/provision/caas/privatenumber/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 
    
    { 
    "origNum":"+86138****8888", 
    "privateNum":"+86138****6666", 
    "preVoice": {
            "callerHintTone": "callerHintTone.wav",
            "calleeHintTone": "calleeHintTone.wav"
            }
    }
  • 响应示例
    HTTP/1.1 200 OK 
    Content-Type: application/json;charset=utf-8 
    Content-Length: xx 
    
    { 
    "resultcode":"0", 
    "resultdesc":"Success", 
    "origNum":"+86138****8888", 
    "privateNum":"+86138****6666",
    "subscriptionId":"******"
    }
support.huaweicloud.com/api-PrivateNumber/privatenumber_02_0011.html