需要什么技术/语言来组合即时通讯 - 集成通知程序?
我和我的团队正在努力将通知软件整合到我们的网站中,以便在 IM 客户端(例如 MSN、AIM、Yahoo Messenger)上添加我们的机器人的用户能够在相关事件发生时收到提醒。与他们有关。我们还需要能够检查他们的状态(在线、离线、忙碌)。
你知道这是否可以直接用 PHP 来完成,或者需要什么其他语言来实现这样的事情?
谢谢! 唐尼
My team and I are struggling to put together a notification software to incorporate onto our site, so that users who have added our bot on their IM client (eg. MSN, AIM, Yahoo Messenger) would be able to get alerted when something relevant is relating to them. We'd also need to be able to check to see what their status is (online, offline, busy).
Do you know if this could be done with straight PHP, or what other language would need to come into play to make something like this possible?
Thanks!
Donny
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
...不确定我是否理解正确:您已经运行 IM-Bot 了吗?如果是这样,它应该为您提供必要的 API 来完成您的工作(查看您正在使用的机器人的文档。)
如果您实际上正在寻找可以在 MSN/AIM/Yahoo/ 上运行的机器人ETC。我建议查看 Bitlbee 这是一个可以连接到的 IRC 服务器即时通讯网络。在 PHP pear 的 Net_SmartIRC 包的帮助下,您将能够连接到它并收集信息你需要。希望有帮助。
... not sure if I understood you correctly: Do you have already a IM-Bot running? If so, it should provide you the necessary API to get your work done (have a look at the documentation of the bot you are using.)
In case you are actually looking for a bot that may be run on MSN/AIM/Yahoo/etc. I'd recommend to have a look on Bitlbee which is a IRC server that may connect to IM networks. With help of Net_SmartIRC Package from PHP pear you'll be able to connect to it and gather the information you need. Hope that helps.
我建议您查看一下node.js。但如果您想在服务器端坚持使用 PHP,JavaScript 轮询将是合并此功能的最简单方法。
示例 JavaScript 以及 jQuery 的一些帮助:
这将请求“your_script.php”,等待两秒钟并再次请求。
I'd recommend taking a look at node.js for this. But if you want to stick with PHP on the server side JavaScript polling would be the easiest way to incorporate this.
Example JavaScript with some help from jQuery:
This would request "your_script.php", wait two seconds and request again.