Thanks to our friend Yann, we now have a Perl wrapper for the Superfeedr API (here is yann’s repo if you want faster updates).
What I like with Yann’s wrapper is that it has a callback that users can implement to return the new feeds to subscribe to in a asynchronous fashion.
So, for example, when you need to add a feed to superfeedr, you can save it in your database, and then, implement the callback so that it returns that feed. Any feed that will be returned will be subscribed to. One of the great advantages is that it shouldn’t affect your service performance, since the subscription is then asynchronous.
Yann will soon put that wrapper on CPAN (not yet there, though), but as with any of our other wrappers, you can of course fork it and improve it (or add doc, tests, examples) ;)
PS: You need to use his version of AnyEvent::XMPP to fix a weird defect in the way this lib handles xmpp-urls.
Thank you Yann ! We owe you dinner!
Comments