隐私保护通话 PRIVATENUMBER-短信通知接口:接口示例

时间:2024-04-23 15:42:46

接口示例

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

  • 请求示例
    POST /notify HTTP/1.1 
    
    content-type: application/json;charset=UTF-8
    authorization: WSSE realm="SDP",profile="UsernameToken",type="Appkey"
    x-wsse: UsernameToken Username="************",PasswordDigest="*************",Nonce="ac1c911c4792492687f8f6b2264a491e",Created="2018-05-26T00:35:30Z"
    content-length:xx
      
    {
    "appKey":"****",
    "smsEvent":{"smsIdentifier":"********",
                "notificationMode":"Notify",
                "calling":"+86138****0001",
                "virtualNumber":"+86138****0000",
                "event":"Text SMS ",
                "timeStamp":"2020-12-23T09:06:16.450Z",
                "extInfo":{"extParas":[{"key":"splitNum","value":"0"},{"key":"direction","value":"2"}]},
                "sendResult":2
                }
    }
  • 响应示例

    请求为Notify模式时

    HTTP/1.1 200 OK 
support.huaweicloud.com/api-PrivateNumber/privatenumber_02_0008_2.html