如何在我的网络应用程序中启用短信通知? [英] How do I enable SMS notifications in my web apps?

查看:68
本文介绍了如何在我的网络应用程序中启用短信通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Web 应用程序,我想为应用程序的用户启用实时 SMS 通知.

I have a web application and I would like to enable real time SMS notifications to the users of the applications.

注意:我目前无法使用 Twitter API,因为我住在西非,而且 Twitter 不会向我的国家/地区发送短信.

Note: I currently cannot use the Twitter API because I live in West Africa, and Twitter doesn't send SMS to my country.

此外,email2sms 也不是一种选择,因为移动运营商在我的国家/地区不允许这样做.

Also email2sms is not an option because the mobile operators don't allow that in my country.

推荐答案

有几个选项.

  • 获取某种 SMS 调制解调器或连接,并通过 smslib 使用您自己的手机.很抱歉我不提供 python 接口,但我的经验是 Java.缺点是您将支付全额消费者费率.而且你必须在你的数据中心放一部手机.
  • 连接到 SMPP 网关.您必须与移动运营商联系才能完成这项工作.有一个名为 jsmpp here 的库.再次,我很抱歉它不是 python.
  • 如果太麻烦,您可以使用提供 HTTP-SMS 网关的中介,例如 这个.这很容易,因为您不需要使用 SMPP,而且您的系统管理员也不会因为您将手机放在数据中心而大发雷霆.
  • Get some kind of SMS modem or connectivity and use your own cell phone using smslib. I am sorry I don't provide python interfaces but my experience is Java. The downside is that you will pay the full consumer rate. And you will have to put a cell phone on your data center.
  • Connect to SMPP gateway. You will have to talk to the mobile operator in order to make this work. There is a library called jsmpp here. Again, I am sorry it is not python.
  • If it is too much of a hassle you could use an intermediary, which provides HTTP-SMS gateways, like this one. That's easy because you don't need to use SMPP and your system administrators wont bark at you for putting cell phones in the datacenter.

这篇关于如何在我的网络应用程序中启用短信通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆