【问题标题】:Send SMS form AngularJS Web App发送短信表单 AngularJS Web App
【发布时间】:2016-11-07 22:49:25
【问题描述】:

我想从 AngularJS Web 应用程序发送短信。谁能告诉我该怎么做?请给我一些参考链接或代码示例。

【问题讨论】:

标签: angularjs web-applications sms


【解决方案1】:

您可以使用的一种技术是使用 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
猜你喜欢
  • 1970-01-01
  • 2011-09-17
  • 1970-01-01
  • 1970-01-01
  • 2016-09-26
  • 2019-04-24
  • 2017-06-22
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多