大佬教程收集整理的这篇文章主要介绍了c# – 如何获得发送到移动设备的短信回复?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
BasicAWSCredentials cr = new BasicAWSCredentials("MYACCESSKEYS","mySecretKeys"); AmazonSimpleNotificationservice sns = new AmazonSimpleNotificationserviceClient(cr); String topicArn = sns.CreateTopic(new CreateTopicrequest { Name = "ses-bounces-topic",}).CreateTopicResult.TopicArn; sns.SetTopicAttributes(new SetTopicAttributesrequest { TopicArn = topicArn,Attributename = "MyName",AttributeValue = "Sample Notifications" }); sns.Subscribe(new Subscriberequest { TopicArn = topicArn,Protocol = "SMS",Endpoint = "my-mobile-number" }); ListSubscriptionsByTopicResult ls = sns.ListSubscriptionsByTopic(new ListSubscriptionsByTopicrequest { TopicArn = topicArn }).ListSubscriptionsByTopicResult; sns.Publish(new Publishrequest { TopicArn=topicArn,Subject="MySms",message="TesTing message" });
此代码工作正常,可以将消息发送到我的手机.我成功地将消息发送到启用SMS的设备移动设备.
如果他/她回来了,有没有办法得到用户的回复?如果我们能够获得使用任何API请求发回的用户的回复,请引导我.
提前致谢!!
以上是大佬教程为你收集整理的c# – 如何获得发送到移动设备的短信回复?全部内容,希望文章能够帮你解决c# – 如何获得发送到移动设备的短信回复?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。