README 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. This plugin enables RSSCloud (http://rsscloud.org/) publishing and subscription
  2. handling for RSS 2.0 profile feeds (i.e:
  3. http://SITE/PATH/api/statuses/user_timeline/USERNAME.rss). When the plugin is
  4. enabled, StatusNet acts as both the publisher and hub ('writer' and 'cloud' in
  5. RSSCloud parlance), but only for local StatusNet feeds. It's not possible to use
  6. it as a general purpose hub -- for instance you can't subscribe and get updates
  7. to a Wordpress feed from StatusNet using this plugin.
  8. To use the plugin, add the following to your config.php:
  9. addPlugin('RSSCloud');
  10. Enabling the plugin will add a <cloud> element to your RSS 2.0 profile feeds
  11. that looks like this:
  12. <cloud domain="SITE" port="80" path="/main/rsscloud/request_notify"
  13. registerProcedure="" protocol="http-post"/>
  14. Aggregators may subscribe by sending a proper REST RSSCloud subscription request
  15. (the optional 'domain' parameter with challenge is supported). Subscribing
  16. aggregators will be notified ('pinged') when users they have subscribed to post
  17. new notices. Currently, REST is the only protocol supported for notifications.
  18. Deamon
  19. ------
  20. There's also a daemon for offline processing of queued notices with RSSCloud
  21. destinations, which will start automatically if/when you run
  22. scripts/startdaemons.sh.
  23. Notes
  24. -----
  25. - Again, only RSS 2.0 profile feeds may be subscribed to, and they have to be
  26. the ones with user names in them, like:
  27. http://SITE/PATH/api/statuses/user_timeline/USERNAME.rss
  28. - Subscriptions are deleted after three notification failures in a row (not sure
  29. this is optimal).
  30. - The plugin includes a dummy LoggingAggregator class that can be used for
  31. end-to-end testing. You probably don't want to mess with it.
  32. TODO
  33. ----
  34. - Figure out why the RSSCloudSubcription can't ->delete() or ->update()
  35. - Support pinging via XML-RPC and SOAP
  36. - Automatically delete subscriptions? Point of reference: Dave's hub
  37. implementation auto-deletes them after 25 hours. WordPress never deletes them.
  38. - Support additional feed URL addresses for the same feed (e.g.: by numeric ID,
  39. ?user_id=xxx, etc.)
  40. - Support additional feeds that make sense (e.g: replies)?
  41. - Possibly use "rssCloud" (like Dave) instead of "RSSCloud" everywhere