如何最好地向各种 IM/通知服务发送通知?
我们有一个网站,提供关于 FOO 值变化的及时更新,并希望通过各种 IM 协议提供新数据通知.
We have a website which provides time-critical updates on changes in the value of FOO, and want to deliver notifications of new data via various IM protocols.
出于他们(和他们的父母)最清楚的原因,FOO 交易者使用 Yahoo!Messenger、MSN、gTalk、AIM,应有尽有.他们希望在台式机上接收更新,以便实时买卖 FOO.
For reasons best known to themselves (and their parents), the FOO-traders use Yahoo! Messenger, MSN, gTalk, AIM, you name it. They want to receive their updates on their desktops so they can buy and sell FOO realtime.
我们希望通过各种网络向他们提供更新,而无需投入大量时间来支持新网络.
We want to deliver the updates to them via the various networks, without investing a huge amount of time in supporting new networks.
我知道 RPX(或现在叫什么名字)和 Gigya 之类的服务,它们允许您跨多个网站进行身份验证.我想要类似的东西,但它允许我们将 IM 传送到相同的各种网络.
I'm aware of services like RPX (or whatever it's now called) and Gigya, which allow you to authenticate across multiple websites. I want something similar, but which allows us to deliver IM to the same various networks.
该服务应该能够轻松地访问来自 PHP (Drupal 7) 网站的通知.
The service should be able to readily expose access to notifications coming from a PHP (Drupal 7) website.
该网站为付费订阅服务;我们不是追求跨网络垃圾邮件解决方案.我这样说 (1) 是为了让您不会讨厌我 (2) 因为如果我们想发送垃圾邮件,那可能会排除网关提供商.
The website is a paid subscription service; we are not after a cross-network spam solution. I say this (1) so you won't hate me (2) because if we wanted to send spam, that would probably preclude gateway providers.
像 PHPurple 这样的自托管解决方案也是一种选择,但我还没有在网上找到太多推荐它作为一种选择.
Self-hosted solutions like PHPurple are an option also, but I haven't found much online to recommend it as an option yet.
对其他网络的支持将是一个奖励,尽管我还没有看到任何 FOO 交易者使用 Twitter.我们还将包括短信和电子邮件通知,以增加老派信用.
Support for other networks will be a bonus, although I haven't seen any of the FOO-traders use Twitter yet. We will also include SMS and email notification for added old-school cred.
推荐答案
通过 Jabber 服务器.
Through Jabber server.
- 设置 Jabber 服务器
- 为您将要使用的所有服务注册帐户
- 注册网关,所有jabber服务器都支持
- 通过 GUI jabber 客户端进行测试
- 编写一个守护进程(或到达某个地方),它登录到 jabber、启动网关、从某个地方读取消息并立即发送.
有命令行实用程序,但它们不起作用,因为服务器不会保持网关连接,除非它自己.
There are command-line utilities, but they won't work, because server won't keep gateways connected unless on it's own.
XMPP 协议非常简单,并且有很多库.
XMPP protocol is quite straightforward and has many libraries.
要获得可靠的 SMS,您可能需要使用其他第 3 方协议或实用程序.
For reliable SMS you might need to use other, 3rd party protocols or utilities.
相关文章