ActivityStreams parser Ruby gem
Thu 25 February, 2010 07:02 |
Permalink |
Comments (0) |
Trackbacks (0)
ActivityStreams is the next big thing TM. It defines a protocol to syndicate activities taken from web applications (mainly social ones) and services. Just imagine a common spec for describing the activities a user do on Facebook, FriendFeed, Delicious, etc.
The protocol originally targeted the Atom XML Standard, via an extension. Later, some work has been done on standardizing a JSON format too.
With that in mind, I’ve tried to implement a Ruby parser that defines a common API to access both the Atom and the JSON specification. Is is now available on github and also as a Ruby gem.
Here’s a simple demonstration on how it works. We take the excellent Cliqset feed proxy and get an activity streams annotated Twitter Atom feed:
The JSON API is very similar. Some documentation is up on rdoc.info and it is worth checking the spec too. Have fun :)
0 Comments | rss | atom | xml | json
You can use Textile 2 markup here. The XHTML tags accepted are: a, abbr, acronym, b, blockquote, code, em, i, strike and strong.