<?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/"
	>

<channel>
	<title>Marcus Povey &#187; data formats</title>
	<atom:link href="http://www.marcus-povey.co.uk/tag/data-formats/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marcus-povey.co.uk</link>
	<description>Making the world a better place, one byte at a time...</description>
	<lastBuildDate>Fri, 16 Jul 2010 09:00:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<atom:link rel='hub' href='http://www.marcus-povey.co.uk/?pushpress=hub'/>
		<item>
		<title>APIs and data formats</title>
		<link>http://www.marcus-povey.co.uk/2008/08/19/apis-and-data-formats/</link>
		<comments>http://www.marcus-povey.co.uk/2008/08/19/apis-and-data-formats/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 18:42:02 +0000</pubDate>
		<dc:creator>Marcus Povey</dc:creator>
				<category><![CDATA[elgg]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[data formats]]></category>
		<category><![CDATA[mashup]]></category>

		<guid isPermaLink="false">http://www.marcus-povey.co.uk/?p=78</guid>
		<description><![CDATA[Now that Elgg 1.0 is finally out of the door, I think it is time to talk a little bit about about some of the more advanced features &#8211; namely APIs and data formats! Elgg 1.0 provides a number of ways at getting at your data, including a number of natively supported data formats; including [...]]]></description>
			<content:encoded><![CDATA[<p>Now that Elgg 1.0 is finally out of the door, I think it is time to talk a little bit about about some of the more advanced features &#8211; namely APIs and data formats!</p>
<p>Elgg 1.0 provides a number of ways at getting at your data, including a number of natively supported data formats; including OpenDD (of course), JSON, PHP, and of course RSS.</p>
<p>If you&#8217;re putting together a mashup, you can use these views very simply. You may have noticed when you&#8217;re looking at a page with a list of items on it, that there are buttons in the top left which link to either a RSS or an OpenDD view.</p>
<p>Now when you click on one of those you&#8217;ll see your data presented in an entirely different way. Now one of the fun things you can do is change that by altering the &#8220;view&#8221; parameter, for example &#8220;view=json&#8221; to get a JSON view.</p>
<p>You can export individual items of data (that you have access to) in different ways by visiting the &#8220;export&#8221; url. For example, to export GUID 1 (which will almost certainly be the first site you set up) visit:</p>
<p><code>http://mysite.com/export/opendd/1/</code></p>
<p>Of course, if you replace &#8220;opendd&#8221; with &#8220;json&#8221; or &#8220;php&#8221; you can see this data presented in an entirely different way. Additionally, you can also add support for other formats, <a href="http://www.marcus-povey.co.uk/page/5/">as I discussed in a previous article</a>.</p>
<p>On top of that, there is an API system where plugin writers can export a function as public. These functions can then be called via a rest-like api (<a href="http://docs.elgg.org/wiki/Engine/RestApi">discussed in more detail here</a>).</p>
<p>You can then select how you want to then see that data &#8211; whether its PHP, XML or JSON etc.</p>
<p>So, in a nutshell, Elgg has some quite powerful tools for quickly and easily creating some pretty funky mashups. Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcus-povey.co.uk/2008/08/19/apis-and-data-formats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
