<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>denisw &#187; buddycloud</title>
	<atom:link href="http://denwash.wordpress.com/category/buddycloud/feed/" rel="self" type="application/rss+xml" />
	<link>http://denwash.wordpress.com</link>
	<description>About programming projects of Denis Washington</description>
	<lastBuildDate>Mon, 01 Apr 2013 12:04:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='denwash.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>denisw &#187; buddycloud</title>
		<link>http://denwash.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://denwash.wordpress.com/osd.xml" title="denisw" />
	<atom:link rel='hub' href='http://denwash.wordpress.com/?pushpress=hub'/>
		<item>
		<title>GSoC ends… but my work will continue</title>
		<link>http://denwash.wordpress.com/2012/08/18/gsoc-ends-but-my-work-will-continue/</link>
		<comments>http://denwash.wordpress.com/2012/08/18/gsoc-ends-but-my-work-will-continue/#comments</comments>
		<pubDate>Sat, 18 Aug 2012 16:04:57 +0000</pubDate>
		<dc:creator>denwash</dc:creator>
				<category><![CDATA[buddycloud]]></category>
		<category><![CDATA[Summer of Code]]></category>

		<guid isPermaLink="false">http://denwash.wordpress.com/?p=119</guid>
		<description><![CDATA[Today is almost the last day before the Google Summer of Code hard &#8220;pencils down&#8221; date (August 20). It was a really great experience to work with the great buddycloud team on creating an HTTP API for them this summer, and I learned a lot about XMPP, HTTP, node.js and several other things in the [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denwash.wordpress.com&#038;blog=22582255&#038;post=119&#038;subd=denwash&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Today is almost the last day before the Google Summer of Code hard &#8220;pencils down&#8221; date (August 20). It was a really great experience to work with the great buddycloud team on creating an HTTP API for them this summer, and I learned a lot about XMPP, HTTP, node.js and several other things in the process. I especially would like to thank my mentor Simon Tennant, who helped me a lot to get started and was always there when I needed him. Thank you!</p>
<p>So I guess now is the right time to look back and see what I have accomplished in the last 13 weeks. Thankfully, I managed to implement most of the things I wanted to. buddycloud now has an HTTP API that lets its users receive channel feeds, post to a channel, find out who is subscribed to a channel, receive channel metadata, et cetera. Rodrigo Duarte, who was working on a <a href="https://github.com/buddycloud/buddycloud-media-server">buddycloud media server</a> at the same time, and I even found the time to <a href="http://rodrigodsousa.blogspot.de/2012/08/http-api-media-server.html">integrate our servers</a> so that HTTP API clients have access to media without needing an XMPP connection &#8211; something that neither of us has planned for before the program started. In short, I think I can be happy with what I have done.</p>
<p>However, there is one feature that didn&#8217;t make it &#8211; listening for new channel posts in real time. As I have mentioned in <a href="https://denwash.wordpress.com/2012/07/19/speak-json-only-the-buddycloud-http-api-can-talk-to-you-now/">my last post</a>, this depends on some functionality in the buddycloud server that is not fully implemented yet. Unfortunately I didn&#8217;t find the time to continue working on this as I was on a two-week vacation to the US for the last two weeks, but I hope I can finally get around to finish this up soon after GSoC.</p>
<p>In general, I do not plan to move away from my project once Summer of Code has ended. The buddycloud team is awesome to work with, and the last thing that I want is my code to bitrot and vanish into uselessness. I will continue to maintain and extend the code as long as possible and might help out the buddycloud project in other areas in the future.</p>
<p>Before I end this post, I want to say THANK YOU to the XMPP Foundation for choosing and supporting me for this Summer of Code (especially for sending us copies of <em>XMPP: The Definitive Guide</em> and <em>Getting Things Done</em> &#8211; they helped me a lot!), and to Google, without whose sponsoring all of this wouldn&#8217;t be possible. You rock!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denwash.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denwash.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denwash.wordpress.com&#038;blog=22582255&#038;post=119&#038;subd=denwash&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://denwash.wordpress.com/2012/08/18/gsoc-ends-but-my-work-will-continue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61059b2f6a7c27aee95d5a4d8260544f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">denwash</media:title>
		</media:content>
	</item>
		<item>
		<title>Speak JSON only? The buddycloud HTTP API can talk to you now</title>
		<link>http://denwash.wordpress.com/2012/07/19/speak-json-only-the-buddycloud-http-api-can-talk-to-you-now/</link>
		<comments>http://denwash.wordpress.com/2012/07/19/speak-json-only-the-buddycloud-http-api-can-talk-to-you-now/#comments</comments>
		<pubDate>Thu, 19 Jul 2012 19:09:24 +0000</pubDate>
		<dc:creator>denwash</dc:creator>
				<category><![CDATA[buddycloud]]></category>
		<category><![CDATA[Summer of Code]]></category>

		<guid isPermaLink="false">http://denwash.wordpress.com/?p=105</guid>
		<description><![CDATA[My last post about the buddycloud HTTP API was quite a long time ago (almost three weeks!). This has multiple reasons. One of them is that I had to write this semester&#8217;s exams in the last three days and thus didn&#8217;t have that much time between having to learn for them and going to University. [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denwash.wordpress.com&#038;blog=22582255&#038;post=105&#038;subd=denwash&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>My <a href="http://denwash.wordpress.com/2012/06/30/demo-client-for-the-buddycloud-http-api/">last post about the buddycloud HTTP API </a>was quite a long time ago (almost three weeks!). This has multiple reasons. One of them is that I had to write this semester&#8217;s exams in the last three days and thus didn&#8217;t have that much time between having to learn for them and going to University. (The semester has ended now, so no more University work from now on &#8211; yay!)</p>
<p>The other reason is that the next feature I planned to implement &#8211; the ability to long-poll the API server for real-time updates to channels &#8211; depends on a not-yet-implemented feature in the buddycloud XMPP component. Namely, it should be possible to temporarily subscribe to a channel to get update notifications even if you are not a follower of the channel. I <a href="https://github.com/buddycloud/buddycloud-server/pull/64">started to implement this</a>, but as <a href="https://github.com/Schnouki">Thomas aka Schnouki</a>, who I am drafting this with (hey Thomas, thanks for helping me out!), is not available this week, I cannot currently continue this work sensibly.</p>
<p>Instead, I worked on something that multiple buddycloud core developers bugged me about in the last few weeks. (Here you are, Simon! <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) Previously, the API used JSON for several types of API requests such as getting subscriber lists or channel metadata, but the post streams themselves were only delivered as Atom feeds &#8211; that is, in XML form. The slightly awkward consequence of this is that you might need to do both XML and JSON processing when using the API. This might not be a problem for several use cases (in JavaScript, the <a href="https://developer.mozilla.org/en/DOM/XMLHttpRequest#responseXML">XMLHttpRequest.responseXML</a> attribute makes XML processing pretty easy actually), but often, one would rather like to have a simpler, JSON-only interface.</p>
<p>For such cases, I have sat down this week and implemented the possibility to get a JSON-serialized form of a channel&#8217;s posts. It doesn&#8217;t include everything the Atom version has &#8211; in fact, it&#8217;s pretty ad-hoc and downright primitive. It includes pretty much everything that most clients are interested in, though, like the items&#8217; contents, who posted then, and which other post it relates to (if it is a comment).</p>
<p>Atom is still the default, but you can ask for JSON by including Accept: application/json into your request. For instance, this is how the latest two posts to <a href="https://beta.buddycloud.org/topics@topics.buddycloud.org">topics@topics.buddycloud.org</a> look when requested this way:</p>
<pre>[
  {
    "id": "0a1ef625-8723-47f3-b6fe-d1dc89f242db",
    "author": "tuomas@buddycloud.org",
    "updated": "2012-07-17T20:17:00.818Z",
    "content": "Welcome!",
    "replyTo": "f0ecd09a-284b-41e6-9863-8214253b1aa3"
  },
  {
    "id": "4e60f61d-e87a-4ad8-a8d4-51b04094a56c",
    "author": "fahrertuer@buddycloud.org",
    "updated": "2012-07-17T15:25:53.987Z",
    "content": "coffee@topics.buddycloud.org\nFor all of us, who love their 1,3,7-trimethyl-1H-purine-2,6(3H,7H)-dione coming from the black brew"
  }
]</pre>
<p>(I assume he &#8220;acct:&#8221; prefix in the two older posts&#8217; &#8220;author&#8221; field comes from an earlier buddycloud server version.) You can also use this JSON format to post new items. For more details and some examples, see the <a href="https://buddycloud.org/wiki/Buddycloud_HTTP_API#Channel_Content_Formats">HTTP API documentation</a>. This feature is already deployed at api.buddycloud.org, so you can already play around with it if you like.</p>
<p>Another small thing I did was to slightly tweak the HTTP demo client. It now <a href="https://www.denisw.de/buddycloud-http-client/?channel=lounge@topics.buddycloud.org">looks better and shows the viewed channel&#8217;s followers</a>. Posting is still not implemented, though; this is for later.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denwash.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denwash.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denwash.wordpress.com&#038;blog=22582255&#038;post=105&#038;subd=denwash&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://denwash.wordpress.com/2012/07/19/speak-json-only-the-buddycloud-http-api-can-talk-to-you-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61059b2f6a7c27aee95d5a4d8260544f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">denwash</media:title>
		</media:content>
	</item>
		<item>
		<title>buddycloud HTTP API progress</title>
		<link>http://denwash.wordpress.com/2012/06/22/buddycloud-http-api-progress/</link>
		<comments>http://denwash.wordpress.com/2012/06/22/buddycloud-http-api-progress/#comments</comments>
		<pubDate>Fri, 22 Jun 2012 13:07:02 +0000</pubDate>
		<dc:creator>denwash</dc:creator>
				<category><![CDATA[buddycloud]]></category>
		<category><![CDATA[Summer of Code]]></category>

		<guid isPermaLink="false">http://denwash.wordpress.com/?p=96</guid>
		<description><![CDATA[Hello again! Since I have deployed the buddycloud HTTP API server to beta.buddycloud.org, it gained some new tricks I implemented during this and the last week. It is now possible to get some metadata about a host like this: Client: GET /channels/lounge@topics.buddycloud.org/posts/meta HTTP/1.1 Host: api.buddycloud.org … Server: HTTP/1.1 200 OK … { "title": "Lounge", "description": [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denwash.wordpress.com&#038;blog=22582255&#038;post=96&#038;subd=denwash&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Hello again! Since I have deployed the buddycloud HTTP API server to beta.buddycloud.org, it gained some new tricks I implemented during this and the last week. It is now possible to get some metadata about a host like this:</p>
<pre><strong>Client:</strong>
GET /channels/lounge@topics.buddycloud.org/posts/meta HTTP/1.1
Host: api.buddycloud.org
…

<strong>Server:</strong>
HTTP/1.1 200 OK
…
{
  "title": "Lounge",
  "description": "Welcome to buddycloud!",
  "access_model": "open",
  "channel_type": "topic",
  "default_affiliation": "publisher"
}</pre>
<p>This feature is already deployed. <a href="https://api.buddycloud.org/channels/gsoc2012@topics.buddycloud.org/posts/meta">Here</a> is an example link for the gsoc2012@topics.buddycloud.org channel. The next task on my to-do list is to make this metadata editable via POST requests.</p>
<p>Another thing I implemented is the possibility to get the list of users subscribed to a channel node, and to (un)subscribe to/from a node. While this works fine with my regression tests, the buddycloud-server version installed on beta.buddycloud.org seems to be slightly out-of-date and creates somewhat non-standard <a href="http://xmpp.org/extensions/xep-0060.html#owner-affiliations-retrieve-success">Pub-Sub &lt;affiliations/&gt; replies</a> (the &#8220;jid&#8221; attributes are missing). For this reason, requests such as <a href="https://api.buddycloud.org/channels/lounge@topics.buddycloud.org/posts/sub">GET /channels/lounge@topics.buddycloud.org/posts/sub </a>return an empty subscriber list currently. I hope this will be sorted out soon.</p>
<p>On the non-coding side, I did some work to document the interfaces I have implemented so far on the <a href="https://buddycloud.org/wiki/Buddycloud_HTTP_API">buddycloud HTTP API</a> page, using the nice template Simon came up with (I wrote the sections whose titles start with <em>/channels/&lt;name&gt;@domain/…</em>). Hopefully, this does a reasonable job explaining how the API can be used, although some information from my <a href="https://buddycloud.org/wiki/GSOC_2012/HTTP_API">GSoC wiki page</a> is still be missing (e.g., concerning authentication and sessions). I&#8217;ll migrate everything valuable to the &#8220;official&#8221; page during the summer.</p>
<p>That&#8217;s all for now. Expect a new post from me soon.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denwash.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denwash.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denwash.wordpress.com&#038;blog=22582255&#038;post=96&#038;subd=denwash&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://denwash.wordpress.com/2012/06/22/buddycloud-http-api-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61059b2f6a7c27aee95d5a4d8260544f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">denwash</media:title>
		</media:content>
	</item>
		<item>
		<title>buddycloud HTTP API deployed &#8211; Try it!</title>
		<link>http://denwash.wordpress.com/2012/06/13/buddycloud-http-api-deployed-try-it/</link>
		<comments>http://denwash.wordpress.com/2012/06/13/buddycloud-http-api-deployed-try-it/#comments</comments>
		<pubDate>Wed, 13 Jun 2012 18:20:44 +0000</pubDate>
		<dc:creator>denwash</dc:creator>
				<category><![CDATA[buddycloud]]></category>
		<category><![CDATA[Summer of Code]]></category>

		<guid isPermaLink="false">http://denwash.wordpress.com/?p=83</guid>
		<description><![CDATA[Hi, After some fumbling around (and one or two failed attempts &#8211; thanks to Simon Tennant for his patience ), I finally managed to deploy the HTTP API server I&#8217;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 [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denwash.wordpress.com&#038;blog=22582255&#038;post=83&#038;subd=denwash&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Hi,</p>
<p>After some fumbling around (and one or two failed attempts &#8211; thanks to Simon Tennant for his patience <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ), I finally managed to deploy the <a href="https://buddycloud.org/wiki/GSOC_2012/HTTP_API" target="_blank">HTTP API server</a> I&#8217;m working on to buddycloud.org. This means you can start playing around with it now!</p>
<p>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 <em>gsoc2012@topic.buddycloud.org</em> channel, on which much GSoC-related discussion takes place, is made accessible as <a href="https://api.buddycloud.org/channels/gsoc2012@topics.buddycloud.org/posts" target="_blank">https://api.buddycloud.org/channels/gsoc2012@topics.buddycloud.org/posts</a>. Go ahead and try out the link &#8211; the channel is public and thus doesn&#8217;t require authentication. This is how it is displayed inside of Firefox on my PC:</p>
<p><a href="http://denwash.files.wordpress.com/2012/06/http_api_firefox.png"><img class="aligncenter size-full wp-image-84" title="http_api_firefox" src="http://denwash.files.wordpress.com/2012/06/http_api_firefox.png?w=497&#038;h=279" alt="" width="497" height="279" /></a></p>
<p>If you have an account at <a href="https://beta.buddycloud.org/" target="_blank">beta.buddycloud.org</a> (it&#8217;s trivial to set one up if you don&#8217;t &#8211; 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 &#8220;lounge&#8221; channel by using <a href="http://curl.haxx.se/" target="_blank">cURL</a>:</p>
<pre>curl -u YOUR_USERNAME@buddycloud.org:YOUR_PASSWORD --data-binary "&lt;entry xmlns='http://www.w3.org/2005/Atom'&gt;&lt;content&gt;Hey&lt;/content&gt;&lt;/entry&gt;" https://api.buddycloud.org/channels/deniswtest@topics.buddycloud.org/posts</pre>
<p>More details can be found on my project&#8217;s <a href="https://buddycloud.org/wiki/GSOC_2012/HTTP_API" target="_blank">wiki page</a>. Have fun!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denwash.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denwash.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denwash.wordpress.com&#038;blog=22582255&#038;post=83&#038;subd=denwash&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://denwash.wordpress.com/2012/06/13/buddycloud-http-api-deployed-try-it/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61059b2f6a7c27aee95d5a4d8260544f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">denwash</media:title>
		</media:content>

		<media:content url="http://denwash.files.wordpress.com/2012/06/http_api_firefox.png" medium="image">
			<media:title type="html">http_api_firefox</media:title>
		</media:content>
	</item>
		<item>
		<title>buddycloud and the REST</title>
		<link>http://denwash.wordpress.com/2012/06/08/buddycloud-and-the-rest/</link>
		<comments>http://denwash.wordpress.com/2012/06/08/buddycloud-and-the-rest/#comments</comments>
		<pubDate>Fri, 08 Jun 2012 16:57:21 +0000</pubDate>
		<dc:creator>denwash</dc:creator>
				<category><![CDATA[buddycloud]]></category>
		<category><![CDATA[Summer of Code]]></category>

		<guid isPermaLink="false">http://denwash.wordpress.com/?p=68</guid>
		<description><![CDATA[Hello, I took MUCH too long to write this, but here it is: the first post on my Google Summer of Code 2012 project for the XSF. Before diving into what I have done and will be doing, I&#8217;ll introduce myself quickly. My name is Denis Washington, I&#8217;m 22 years old and I study Computer [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denwash.wordpress.com&#038;blog=22582255&#038;post=68&#038;subd=denwash&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Hello,</p>
<p>I took MUCH too long to write this, but here it is: the first post on my Google Summer of Code 2012 project for the XSF.</p>
<p>Before diving into what I have done and will be doing, I&#8217;ll introduce myself quickly. My name is Denis Washington, I&#8217;m 22 years old and I study Computer Science at the Humboldt University of Berlin (I&#8217;m in my fourth semester currently). I have a passion for everything open and collaborative when it comes to software, the web, protocols and standards. I use Ubuntu as my main operating system and love to use my free time to hack code, play indie games and spend time with my wonderful girlfriend. I am also a sucker for programming languages and love to learn a new one, like, every six months or so. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyway, here is what I am up to: for <a href="http://buddycloud.com/" target="_blank">buddycloud</a>, I&#8217;m developing a small server that allows its clients to access and modify buddycloud channels through a REST-like HTTP API. What this means is that every channel stream and post can be addressed with an HTTP URL, retrieved as an ordinary Atom document, modified, posted to and much more. This is going to open up a great deal of opportunities for interoperability between buddycloud and the web. For instance, here are some use cases copied from my project&#8217;s <a href="https://buddycloud.org/wiki/GSOC_2012/HTTP_API" target="_blank">wiki page at buddycloud.org</a>:</p>
<ul>
<li><strong>&#8220;Post To Channel&#8221; button</strong>: Joe maintains a cute cat picture gallery site and wants to give his visitors the possibility to share one of these with their kitten-loving buddycloud friends. For this reason, every picture should have a &#8220;Post to Channel&#8221; button which, when clicked, lets the user choose from a list of his or her subscribed channels and automatically posts a link to the picure to that channel. Using the HTTP API, he can program this easily with only a few XmlHttpRequests and absolutely no knowledge of the underlying XMPP communication.</li>
</ul>
<ul>
<li><strong>External following</strong>: Alice is a talented indie game developer who often talks on conferences about good game design and her newest game projects. On one of these conferences she meets Bob, who is very interested in what Alice is doing and would love to follow her newest game development activities and which conferences she is going to speak in. However, Alice writes about these things mostly in a public buddycloud channel, while Bob is Friendica user. However, Alice is able to give Bob an HTTP URI which, when Bob pastes it into Friendica&#8217;s Atom connector, allows him to have Alice&#8217;s posts seamlessly integrated into his Friendica message stream without having to create a buddycloud account only for this reason.</li>
</ul>
<ul>
<li><strong>Automation</strong>: Karen is the system administrator of a small open-source project which mainly communicates through a buddycloud channel. To not have old bug reports forgotten, she has the idea to randomly choose a selection of old unresolved bugs &#8211; say, older than six months &#8211; from the bug tracker every two weeks and highlight them by posting them to the project&#8217;s channel. She is able to quickly automate this process by writing a server cron job which leverages the HTTP API through simple invocations of the ubiquitous <a href="http://curl.haxx.se/" rel="nofollow">cURL</a> command-line utility.</li>
</ul>
<p>Many more use cases are imaginable. And as buddycloud channels are technically not much more than collections of <a href="http://www.atomenabled.org/" target="_blank">Atom</a>-based <a href="http://xmpp.org/extensions/xep-0060.html" target="_blank">XMPP Publish-Subscribe</a> nodes, the code does not only apply for buddycloud, but could also be useful for to other Pub-Sub based systems. (I am currently concentrating on making it work nicely with buddycloud, though.)</p>
<p>So how far am I? Currently, retrieving and posting to channel streams is completely working. Authenticating requests by passing in a JID and a password (via HTTP Basic Auth) is also implemented. This means that with the soon-to-be-deployed HTTP API server on buddycloud.org, you&#8217;ll be able to do requests like this one:</p>
<pre><strong>Client:</strong>
GET /channels/lounge@topics.buddycloud.org/posts?max=10 HTTP/1.1
Host: api.buddycloud.org
…

<strong>Server:</strong>
HTTP/1.1 200 OK
…
&lt;feed xmlns="http://www.w3.org/2005/Atom"&gt;
  &lt;entry id="…"&gt;
    &lt;author&gt;
      &lt;name&gt;denisw@buddycloud.org&lt;/name&gt;
       …
    &lt;/author&gt;
    &lt;content&gt;This is the newest post!&lt;/content&gt;
  &lt;/entry&gt;
  …
&lt;/feed&gt;</pre>
<p>or this one:</p>
<pre><strong>Client:</strong>
POST /channels/lounge@topics.buddycloud.org/posts
Authorization: Basic …
Content-Type: application/atom+xml
…
&lt;entry xmlns="http://www.w3.org/2005/Atom"&gt;
  &lt;content&gt;Hey, my first channel post via HTTP!&lt;/content&gt;
&lt;/content&gt;

<strong>Server:</strong>
HTTP/1.1 201 Created
Location: /channels/lounge@topics.buddycloud.org/posts/item?id=…
…</pre>
<p>And &#8211; my favorite &#8211; you&#8217;ll be able to follow channels with your feed reader:</p>
<div class="wp-caption alignnone" style="width: 507px"><a href="https://denwash.files.wordpress.com/2012/06/buddycloud-thunderbird.png"><img title="Reading a buddycloud channel post from Thundebird" src="https://denwash.files.wordpress.com/2012/06/buddycloud-thunderbird.png?w=497&#038;h=370" alt="" width="497" height="370" /></a><p class="wp-caption-text"><em>Thunderbird supports feeds protected with HTTP Basic, so you can even follow private channels!</em></p></div>
<p>For more details on the API looks, see the already-mentioned <a href="https://buddycloud.org/wiki/GSOC_2012/HTTP_API">wiki page</a>. (Not everything described there is implemented yet.)  The code can be <a href="https://github.com/buddycloud/buddycloud-http-api">found at Github.</a></p>
<p>Next up on my todo list &#8211; other than polishing and cleaning up what I have so far &#8211; is implementing access to a channel stream&#8217;s metadata (for instance, who is subscribed to it), as well as the possibility to (un)subscribe a channel stream. Stay tuned.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/denwash.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/denwash.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=denwash.wordpress.com&#038;blog=22582255&#038;post=68&#038;subd=denwash&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://denwash.wordpress.com/2012/06/08/buddycloud-and-the-rest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/61059b2f6a7c27aee95d5a4d8260544f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">denwash</media:title>
		</media:content>

		<media:content url="https://denwash.files.wordpress.com/2012/06/buddycloud-thunderbird.png" medium="image">
			<media:title type="html">Reading a buddycloud channel post from Thundebird</media:title>
		</media:content>
	</item>
	</channel>
</rss>