使用AWS SNS在沙箱外发送SMS,仍然需要先验证新电话号码吗?

发布于 2025-02-04 13:31:02 字数 830 浏览 2 评论 0 原文

我一直在寻找有关SMS的AWS SNS服务的信息。 我想在请求AWS帐户从SMS沙箱中移出之前,请确保问题。

我正在尝试在Heroku上运行的产品上使用此服务,这意味着我必须在 us East(N。Virginia)上使用该区域 us-east-1 。但是产品用户主要生活在亚洲。我在沙盒模式下对其进行了测试,并且可以接收消息。

这是一个问题: 如果AWS帐户退出SMS Sandbox并尝试将SMS发送到新电话号码,我是否仍然需要先验证电话号码,然后它可以接收消息?

我阅读了这两个文档,但无法确保服务。非常感谢任何答案,以帮助我弄清楚。

I keep looking for the informaion on AWS SNS services of SMS.
I would like to make sure the question before I request AWS account being moved out of the SMS sandbox.

I am trying to use this services on a product running on Heroku, which means I have to use the region on US East (N. Virginia) us-east-1. But the product users mainly live in Asia. I test it in sandbox mode, and it can receive the message.

Here comes the question:
If AWS account exits SMS sandbox and try to send SMS to a new phone number, do I still need to verify the phone number first then it can receive the message?

I read those two document, but cannot ensure the services. Really appreciate any answers to help me figure out.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

全部不再 2025-02-11 13:31:03

您可以在CLI中对其进行测试,然后在您的应用中

  1. 获取app

    中的客户端数量

  2. aws sns create-sms-sandbox-phone-number -phone-number

  3. 向客户询问代码并将其放入此语法

    aws sns verify-sms-sandbox-phone-number -phone-number-one-pass-password

  4. 发送

    aws sns publish------“你好朋友,你被订阅了!” - 电话数

aws sns create-sms-sandbox-phone-number --phone-number <value>
aws sns verify-sms-sandbox-phone-number --phone-number <value> --one-time-password <value>
aws sns publish --message "Hello friend, you are subscribed!" --phone-number <value>

在应用程序中:

>>> import subprocess
>>> subprocess.run(['aws','sns', 'publish', '--message', '"Hello, world!"', '--phone-number', '+5511123456789'])

You can test it in CLI and then in you app

  1. get the number of your client in app

  2. put the value in this sintaxe:

    aws sns create-sms-sandbox-phone-number --phone-number

  3. ask the customer for the code and put it in this syntax

    aws sns verify-sms-sandbox-phone-number --phone-number --one-time-password

  4. send it

    aws sns publish --message "Hello friend, you are subscribed!" --phone-number

IN CLI:

aws sns create-sms-sandbox-phone-number --phone-number <value>
aws sns verify-sms-sandbox-phone-number --phone-number <value> --one-time-password <value>
aws sns publish --message "Hello friend, you are subscribed!" --phone-number <value>

IN APP:

>>> import subprocess
>>> subprocess.run(['aws','sns', 'publish', '--message', '"Hello, world!"', '--phone-number', '+5511123456789'])
萌面超妹 2025-02-11 13:31:02

您无需验证您希望将SMS消息发送到SMS Sandbox后发送短信的电话号码。这严格来说是对SMS沙箱中帐户的要求。

You do not need to verify phone numbers you wish to send SMS messages to once you have exited the SMS sandbox. This is strictly a requirement for accounts in the SMS sandbox.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文