我正在使用 API 发送短信,下面的 URL 发送短信:
https://api.smsified.com/v1/smsmessaging/outbound/7243203328/requests?address=1234567890&message=this%20shall%20send%20delivery%20notice¬ifyURL=http%3A%2F%2Flocalhost%2FWebsite8%2FDefault.aspx
NotifyURL 是一个可选参数,它告诉 SMSified 您希望将消息的传递报告发送到哪里。它必须是 SMSified 可以通过 HTTP 向其发送 JSON 有效负载的公开可用 URL。
如何接收使用我的 asp.net 应用程序发送的这个 JSON 有效负载?
下面是发送到定义的 notifyURL 的数据示例:
{
"deliveryInfoNotification": {
"deliveryInfo": {
"address": "14075550100",
"code": "0",
"createdDateTime": "2011-05-12T00:55:25.313Z",
"deliveryStatus": "DeliveredToNetwork",
"direction": "outbound",
"message": "Hello world",
"messageId": "3e5caf2782cb2eb310878b03efec5083",
"parts": "1",
"senderAddress": "16575550100",
"sentDateTime": "2011-05-12T00:55:34.359Z"
}
}
}