Skip to content

buddycloud HTTP API deployed – Try it!

June 13, 2012

Hi,

After some fumbling around (and one or two failed attempts – thanks to Simon Tennant for his patience :)), I finally managed to deploy the HTTP API server I’m working on to buddycloud.org. This means you can start playing around with it now!

For starters, the API lets you view every buddycloud channel as an Atom feed with a simple HTTP URL. For instance, the posts of the gsoc2012@topic.buddycloud.org channel, on which much GSoC-related discussion takes place, is made accessible as https://api.buddycloud.org/channels/gsoc2012@topics.buddycloud.org/posts. Go ahead and try out the link – the channel is public and thus doesn’t require authentication. This is how it is displayed inside of Firefox on my PC:

If you have an account at beta.buddycloud.org (it’s trivial to set one up if you don’t – you only need to supply a username, password and e-mail address), you can also use the API to post to a channel. For instance, here is how you can greet us with a post to the “lounge” channel by using cURL:

curl -u YOUR_USERNAME@buddycloud.org:YOUR_PASSWORD --data-binary "<entry xmlns='http://www.w3.org/2005/Atom'><content>Hey</content></entry>" https://api.buddycloud.org/channels/deniswtest@topics.buddycloud.org/posts

More details can be found on my project’s wiki page. Have fun!

About these ads
One Comment
  1. Justin Karneges permalink

    Hi Denis, this is very cool. I’ve been waiting for you guys to start developing this API. Earlier this year, Simon and I had discussed the possibility of collaboration between Buddycloud and my Fanout.io project (a data delivery service), and I wonder if working together on this API might be a good fit. I could not find your contact info, but if you could email at justin@affinix.com that would be great. Thanks. :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: