Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Nexmo SMS api发送带正文文本的文本_C#_.net_Sms_Nexmo - Fatal编程技术网

C# Nexmo SMS api发送带正文文本的文本

C# Nexmo SMS api发送带正文文本的文本,c#,.net,sms,nexmo,C#,.net,Sms,Nexmo,我在Nexmo注册了一个calledback方法 当收到消息时,我的动作方法会被Nexmo点击 但我没有收到短信和时间戳 我只收到了messageId、发送方和接收方号码的响应 下面是我的代码 SMS.SMSRequest r = new SMS.SMSRequest(); r.to = "number"; r.from = Configuration.Instance.Settings["a"]; r.body

我在Nexmo注册了一个calledback方法

当收到消息时,我的动作方法会被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);
状态为
0的
r.Send(..)
的结果表示其
OK

如有任何帮助,我们将不胜感激,谢谢。

根据,您不应期望收到邮件文本作为送达回执的一部分。收据确实包含时间戳,但请注意,该字段的名称是“message timestamp”。问题可能在于处理回调的代码,而不是发送消息的代码