Web 应用程序中的免费 SMS API [英] Free SMS API in web application

查看:35
本文介绍了Web 应用程序中的免费 SMS API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道我可以在我的网络应用程序中使用任何 SMS API 向用户发送 SMS 消息吗?

Does anyone know of any SMS APIs that I can use in my web application to send SMS messages to users?

推荐答案

大多数移动提供商都支持 SNPP(简单网络分页协议).尽管名称如此,SNPP 还用于向手机发送短信.它真的很容易使用.只需确定每个用户使用的是哪个移动提供商,然后将页面"发送到相应的 SNPP 服务器即可.

Most mobile providers support SNPP (Simple Network Paging Protocol). Despite the name, SNPP is also used to send text messages to cell phones. It's really easy to use. Just determine which mobile provider each user is using and then dispatch a "page" to the corresponding SNPP server.

例如,Sprint 的 SNPP 服务器是 snpp.messaging.sprint.com:444.基本流程是这样的:

For example, Sprint's SNPP server is snpp.messaging.sprint.com:444. The basic process goes like this:

  1. 打开与 SNPP 服务器的连接.
  2. 发送PAGE电话号码
  3. 检查回复中的状态代码 250.
  4. 发送MESS您的消息
  5. 检查回复中的状态代码 250.
  6. 发送发送
  7. 再次检查状态代码250
  8. 发送退出

某些服务器还支持主题行和延迟消息,以及双向消息传递.

Some servers also support subject lines and delayed messages, along with two-way messaging.

这篇关于Web 应用程序中的免费 SMS API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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