如何使用订阅者选项? [英] How do I use the subscriber option?

查看:120
本文介绍了如何使用订阅者选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在开始使用Pubsubhubbub(以及有关实时性的所有内容),但是我在使用订阅者"选项时遇到了麻烦.

I started now with Pubsubhubbub (and all about realtime things), but I amhaving trouble with the Subscriber option.

我正在尝试使用PHP开发一个Web应用程序,以:

I'm trying to develop a webapp in PHP to:

  1. 为中心订阅RSS(以前已发布)( http://pubsubhubbub.appspot.com/);
  2. 从中心读取订阅的通知(更新); 没有成功!!! :(
  1. Subscribe a RSS (previously Published) to the Hub (http://pubsubhubbub.appspot.com/);
  2. Read notifications (updates) from the Hub for the subscription; without succeed!!! :(

我确认 php订阅服务器中存在一个库(在Git中),但 使用此库无法使订阅"工作正常(出现409错误!).

I verify that exist a library in php to the Subscriber (in Git), but using this lib can't make the Subscribe work's (get a 409 error!).

我该怎么做?

推荐答案

这是一个老问题,链接到的PHP库ddluis有很多缺陷.

This is an old question and the PHP library ddluis linked to has many flaws.

在Google Code Wiki中推荐的PHP订阅者是PuSHSubscriber:

The recommended PHP subscriber in the Google Code wiki is PuSHSubscriber:

http://github.com/lxbarth/PuSHSubscriber/

更新:

我分叉了PuSHSubscriber: http://github.com/bobdia/PuSHSubscriber

I forked PuSHSubscriber: http://github.com/bobdia/PuSHSubscriber

我已对原始内容进行了一些不兼容的更改.可以在/example 目录中找到一个简单的实现.这并不是真正的用途,仅是出于演示目的.我希望您觉得它有用.

I've made a few incompatible changes with the original. A simple implementation can be found in the /example directory. This is not meant for real use, just for demonstration purposes. I hope you find it useful.

这篇关于如何使用订阅者选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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