使用字母数字发送者ID发送SMS时从数字中选择正确
我正在使用Twilio API向客户发送SMS。
假设我在Twilio中有2个电话号码 (美国和澳大利亚)。 我想根据我的客户位置使用数字。
如果客户来自我们,那么我通过美国号码发送短信,或 如果客户来自澳大利亚,那么我通过AUS号发送SMS。
我知道这是通过API通过更改“来自”参数值的。
但是我的问题是,如果我需要使用字母数字作为发件人ID(例如我的公司名称) 如何通过保持相同的逻辑(从我们到我们,从澳大利亚到澳大利亚)来做到这
一点?
I'm using twilio API for sending sms to my customers.
suppose I have 2 phone numbers in twilio
(US and AUS ).
I want to use from number based on my customers location.
if the customers is from US, then I send sms via US number, or
if the customers is from Australia , then I send sms via AUS number.
I know this is possible via API, by changing the "from" parameter value.
but my question is, If I need to use Alphanumeric as my sender Id ( for example my company name)
how can I do this by keeping the same logic ( from US > to US , from AUS to AUS)
any idea ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您在这里寻找的是消息传递服务。消息服务在这里为您提供了一些有用的功能。
您可以将字母数字发送者ID连接到您的消息服务尝试在支持它的国家 /地区使用该发件人ID。还有 geomatching 通过服务发送消息,或者当它返回到一个数字而不是字母数字发件人ID时,它将接收到接收者最近的国家。
因此,如果您的消息服务中有一个字母数字发送者ID和一个美国号码,并将消息发送给美国号码,则将使用美国号码。
What you are looking for here is a Messaging Service. Messaging Services have a couple of useful features for you here.
You can connect an alphanumeric sender ID to your Messaging Service and Twilio will attempt to use that sender ID in countries that support it. There is also geomatching, so when you use a number to send a message through the service, or when it falls back to a number instead of an alphanumeric sender ID, it picks the nearest country to the recipient.
So, if you have an alphanumeric sender ID and a US number in your Messaging Service and send a message to a US number it will use the US number.