简体   繁体   English

如何使用 Azure 通知中心和 R 向客户手机发送短信?

[英]How to send sms to customers mobiles using Azure Notification Hub with R?

I want send sms notification to customer mobiles using azure notification hub with R.I tried with twilio but in twilio we have to register mobile numbers first,I can't send messages with unregistered numbers.That's why i chosed azure notification hub.Can you suggest me how to send messages to android using azure notification hub with R? I want send sms notification to customer mobiles using azure notification hub with R.I tried with twilio but in twilio we have to register mobile numbers first,I can't send messages with unregistered numbers.That's why i chosed azure notification hub.Can you建议我如何使用 azure 通知中心和 R 向 android 发送消息?

Tried in twilio:在 twilio 中试过:

Sys.setenv(TWILIO_SID = "xxxxxxxxxxx")
Sys.setenv(TWILIO_TOKEN = "xxxxxxxxxxxxxxxx")
#  store the numbers in some variables
my_phone_number <- "zzzzzzzzzz" ###n user's number
twilios_phone_number <- "zzzzzzzzzz" ### given number by twilio

# Now we can send away!
tw_send_message(from = twilios_phone_number, to = my_phone_number, 
                body = "Hello from R 👋")

Azure notification hub does not provide SMS messaging. Azure 通知中心不提供 SMS 消息。 It works with push notifications, but to leverage those, you need to have a mobile app in place.它适用于推送通知,但要利用这些,您需要有一个移动应用程序。 Here you can find more details. 在这里您可以找到更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM