【发布时间】:2018-06-26 06:52:08
【问题描述】:
我在 Nexmo 注册了一个回调方法。
当收到消息时,我的操作方法被 Nexmo 击中。
但我没有收到消息文本和时间戳。
我只收到messageId,发件人和收件人号码作为响应
以下是我的代码
SMS.SMSRequest r = new SMS.SMSRequest();
r.to = "number";
r.from = Configuration.Instance.Settings["a"];
r.body = "Testing";
r.text = "Testing";
Nexmo.Api.Request.Credentials c = new Nexmo.Api.Request.Credentials();
c.ApiKey = "Key";
c.ApiSecret = "key";
c.ApplicationId = "ID";
c.ApplicationKey = "XYZ";
// r.message_class = "1";
r.type = "text";
r.callback = "http://www.eurosoftsms.co.uk/inbound/SMSInbound";
var x= Nexmo.Api.SMS.Send(r,c);
r.Send(..) 状态为0 的结果表示它的OK
任何帮助将不胜感激,谢谢
【问题讨论】: