【发布时间】:2016-11-07 22:49:25
【问题描述】:
我想从 AngularJS Web 应用程序发送短信。谁能告诉我该怎么做?请给我一些参考链接或代码示例。
【问题讨论】:
-
谷歌:角度短信。第 5 个结果:123-txt.com/sms-gateway-api/rest-api/…
标签: angularjs web-applications sms
我想从 AngularJS Web 应用程序发送短信。谁能告诉我该怎么做?请给我一些参考链接或代码示例。
【问题讨论】:
标签: angularjs web-applications sms
您可以使用的一种技术是使用 Firebase 和 Zapier 来帮助触发发送短信。您可以查看this blog post which details how to set something like this up。
当您希望像这样触发 SMS 时,诀窍是将数据加载到您的 Firebase:
var sendSMSText = function (recipient) {
var smsQueue = new Firebase('https://.firebaseio.com/sms/' + recipient.phone);
smsQueue.set({
name: recipient.name,
phone: recipient.phone
}, onSuccess)
};
然后设置 Zapier 以在将条目添加到 Firebase 数据库时触发新操作。您可以让此操作触发 Twilio SMS 消息。
希望对您有所帮助。
免责声明:我为 Twilio 工作。
在 angular2 中不工作
【讨论】:
Firebase 触发器自 5 月 18 日起不再支持 Google I/O