<?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>absent design &#124; useful simple software &#187; development</title>
	<atom:link href="http://blog.absentdesign.com/tag/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.absentdesign.com</link>
	<description>useful simple software</description>
	<lastBuildDate>Thu, 02 Feb 2012 02:54:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>WordPress and AS3, a few notes</title>
		<link>http://blog.absentdesign.com/2009/03/wordpress-and-as3-a-few-notes/</link>
		<comments>http://blog.absentdesign.com/2009/03/wordpress-and-as3-a-few-notes/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 07:49:09 +0000</pubDate>
		<dc:creator>Reuben</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.absentdesign.com/?p=12</guid>
		<description><![CDATA[I'm about halfway through developing my WordPress / AS3 library and I thought I'd note down a few things that have come up during development.]]></description>
			<content:encoded><![CDATA[<p>UPDATE: My <a href="http://blog.absentdesign.com/as3-library-for-the-wordpress-api/">WordPress AS3 API is now available</a>.</p>

<p>I&#8217;m about halfway through developing my WordPress / AS3 library and I thought I&#8217;d note down a few things that have come up during development.</p>

<h3>Does anyone know their blogId?</h3>

<p>The blogId parameter is required for most <code>wp</code>, <code>mt</code>, and <code>metaweblog</code> calls, yet there is no easy way for a user to find this out (you can&#8217;t get your blogId from the WordPress admin interface) &#8211; it seems the only way is through a call to <code>wp.getUsersBlogs</code>, using the data from the returned array to match up with the blog url that you are calling. I&#8217;ve simplified this process in my API so that whenever you make a webservice method call the api will check to see if a valid blogId is available, and if not, make the <code>wp.getUsersBlogs</code> call for you first.</p>

<h3>Inconstencies</h3>

<p>WordPress XML-RPC is inconsistent in the way it sends and retrieves some types of data. For example, categories are retrieved using <code>wp.getCategories</code> with the properties <code>categoryName</code> and <code>categoryId</code>, but if you use <code>wp.suggestCategories</code> you get <code>category_name</code> and <code>category_id </code>instead, meaning I have had to write duplicate parsing functions on a few occasions.</p>

<h3>Null values</h3>

<p><a href="http://code.google.com/p/as3-rpclib/">Ak33m&#8217;s XML-RPC library</a> (correctly, I assume) serializes <code>null</code> properties to strings with a value of <code>"null"</code>. This means  that when you send data to WordPress you can end up with &#8220;null&#8221; showing up everywhere &#8211; (A post with a category of &#8220;null&#8221; and a tag of &#8220;null&#8221;, a category with a slug of &#8220;null&#8221; etc). To avoid this I&#8217;ve had to create an IXMLRPC implementation for all of my WordPress structs that converts &#8220;<code>null" </code>to an empty string (<code>""</code>) before serialization.</p>

<h3>Multiple authors</h3>

<p>I haven&#8217;t worked out how to make <code>metaweblog.getRecentPosts</code> work with multiple authors. Because you have to authenticate using a username/password to make the call, you can only seem to retrieve posts by that particular author. I&#8217;m not sure how to get posts from multi-author blog without having to authenticate separately for each user, which is quite frustrating.</p>

<p>Apart from these minor issues, everything is going along smoothly though &#8211; I now have all post, category and page functions working correctly, options and comments to follow.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.absentdesign.com/2009/03/wordpress-and-as3-a-few-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress and AS3 integration</title>
		<link>http://blog.absentdesign.com/2009/03/wordpress-and-as3-integration/</link>
		<comments>http://blog.absentdesign.com/2009/03/wordpress-and-as3-integration/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 19:55:48 +0000</pubDate>
		<dc:creator>Reuben</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://absentdesign.wordpress.com/?p=5</guid>
		<description><![CDATA[UPDATE: The AS3 Library for the WordPress API is now available. Recently I was searching around for an easy way to build a flash front-end for a WordPress managed website for a friend of mine. I was incredibly surprised to find that there doesn&#8217;t seem to be a properly integrated ActionScript library available for  WordPress XML-RPC, [...]]]></description>
			<content:encoded><![CDATA[<p>UPDATE: The <a href="http://blog.absentdesign.com/as3-library-for-the-wordpress-api/">AS3 Library for the WordPress API is now available</a>.</p>

<p>Recently I was searching around for an easy way to build a flash front-end for a WordPress managed website for a friend of mine. I was incredibly surprised to find that there doesn&#8217;t seem to be a properly integrated ActionScript library available for  <a href="http://codex.wordpress.org/XML-RPC_Support">WordPress XML-RPC</a>, or if one is available, Google and the Actionscript community don&#8217;t seem to know about it.</p>

<p><strong>So I&#8217;ve decided to build one.</strong></p>

<p>I&#8217;ve had a little experience building ActionScript API libraries before when I was testing the <a href="http://artbeatapi.absentdesign.com/">Artbeat API</a> with <a href="http://aqworks.com">AQ</a> &#8211; the Artbeat library has its flaws (not the least of which is no documentation of any kind), and I&#8217;ve learnt a lot from that experience.</p>

<p>My idea is single library that allows you to easily make all of the WordPress, MovableType, and Metaweblog API calls required to integrate flash with WordPress. I&#8217;m using <a href="http://ak33m.com/">Akeem Phillbert&#8217;s</a> <a href="http://code.google.com/p/as3-rpclib/">xml-rpc as3 library</a>, as a base for the XML-RPC calls.</p>

<p>I&#8217;ll be posting my progress here as the library develops.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.absentdesign.com/2009/03/wordpress-and-as3-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

