如何最好地向各种 IM/通知服务发送通知?

2023-06-22php开发问题
1

本文介绍了如何最好地向各种 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.

  1. 设置 Jabber 服务器
  2. 为您将要使用的所有服务注册帐户
  3. 注册网关,所有jabber服务器都支持
  4. 通过 GUI jabber 客户端进行测试
  5. 编写一个守护进程(或到达某个地方),它登录到 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.

这篇关于如何最好地向各种 IM/通知服务发送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

PHP实现DeepL翻译API调用
DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以...
2025-08-20 php开发问题
168

PHP通过phpspreadsheet导入Excel日期数据处理方法
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的...
2024-10-23 php开发问题
287

mediatemple - 无法使用 codeigniter 发送电子邮件
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)...
2024-08-23 php开发问题
11

Laravel Gmail 配置错误
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)...
2024-08-23 php开发问题
16

将 PHPMailer 用于 SMTP 的问题
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)...
2024-08-23 php开发问题
4

关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)...
2024-08-23 php开发问题
17