如何获得发送到移动设备的SMS回复? [英] How can I get the reply of SMS that sent to a mobile device?

查看:82
本文介绍了如何获得发送到移动设备的SMS回复?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用此示例代码来使用SNS API发送消息-

I am trying with this sample code to send message using SNS API -

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的设备移动设备.

This code working fine to send message to my mobile. I am successful to send message to a SMS-enabled device mobile.

如果他/她被发回,是否有任何方法可以得到用户的答复?如果我们可以使用任何API请求将用户的回复发送回去,请指导我.

Is there any way to get reply of user if he/she sent back? Please guide me if we can get the reply of user sent back using any API request.

提前谢谢!

推荐答案

您当前无法使用Amazon SNS接收对SMS消息的回复.我们想提供扩展的SMS支持(更多的AWS地区,更多的地理覆盖范围,更多的功能),但是很遗憾,没有时间共享.

You cannot currently receive replies to SMS messages with Amazon SNS. We would like to provide expanded SMS support (more AWS regions, more geographic coverage, more functionality), but unfortunately don’t have timing to share.

这篇关于如何获得发送到移动设备的SMS回复?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆