<?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>newthink.net &#187; PostRank</title>
	<atom:link href="http://www.newthink.net/tag/postrank/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.newthink.net</link>
	<description>Less Talk. More Do.</description>
	<lastBuildDate>Tue, 26 Jan 2010 18:28:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PostRank Python API</title>
		<link>http://www.newthink.net/2008/07/14/postrank-python-api/</link>
		<comments>http://www.newthink.net/2008/07/14/postrank-python-api/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 15:22:00 +0000</pubDate>
		<dc:creator>Ash Christopher</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[AideRSS]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[PostRank]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://newthink.net/blog/2008/07/14/postrank-python-api/</guid>
		<description><![CDATA[What is PostRank?
PostRank is a scoring system developed by AideRSS to rank any kind of online content, such as RSS feed items, blog posts, articles, or news stories. PostRank is based on social engagement, which refers to how interesting or relevant people have found an item or category to be.
Public-facing RESTful API&#8217;s are becoming more [...]]]></description>
			<content:encoded><![CDATA[<h3>What is PostRank?</h3>
<blockquote><p>PostRank is a scoring system developed by AideRSS to rank any kind of online content, such as RSS feed items, blog posts, articles, or news stories. PostRank is based on social engagement, which refers to how interesting or relevant people have found an item or category to be.</p></blockquote>
<p>Public-facing <a href="http://en.wikipedia.org/wiki/RESTful">RESTful</a> API&#8217;s are becoming more popular as a way to allow access to services by third-parties. <a href="http://www.aiderss.com">AideRSS</a> recently decoupled their PostRank service and offered it as a stand-alone service allowing any developer to use <a href="http://www.postrank.com">PostRank</a> within their application. I am in the process of updating this website/blog and I am planning to make use of the PostRank service not only as a tool to measure my engagement with the public, but increase the usefulness of my posts.</p>
<h3>What is PostRank Python API and what does it do?</h3>
<p>This is an api accessor for python that allows a developer to quickly access all of the services offered by PostRank. It is loosely modeled after <a href="http://mike.verdone.ca/twitter/">Mike Verdone&#8217;s Python Twitter Tools</a> in that it is simple to use, and it uses the same arguments as those documented on the <a href="http://postrank.com/developers.html">PostRank API</a> page.</p>
<h3>What are the requirements?</h3>
<ul>
<li>Python 2.5 <em>(haven&#8217;t tested with &lt;2.4)</em></li>
<li>simplejson python library <em>(if using json output)</em></li>
</ul>
<h3>How do I use it?</h3>
<p>Using the PostRank Python API is very easy. The first step should be to look at the API documentation provided by the PostRank website.</p>
<p><img src="http://newthink.net/wp-content/uploads/2008/07/feed_id_api_doc1.png" alt="feed_id API Doc" /></p>
<p>We can see what options the api needs in order to satisfy the request. We just need to specify the resource that we want to use, then we can add all the arguments we want passed along to PostRank.</p>
<p><img src="http://newthink.net/wp-content/uploads/2008/07/feed_id_usage_example.png" alt="feed_id usage example." /></p>
<p>If you have selected JSON as your format, the api will return to you a simplejson object which can be accessed just like a multi-dimensional array. When using JSON, it is extremely simple to get at the information provided by PostRank.</p>
<p><img src="http://newthink.net/wp-content/uploads/2008/07/using_json_object.png" alt="Using the json object." /></p>
<p>There is a bit of a trick when using the &#8216;<a href="http://postrank.com/api/postrank.html">postrank</a>&#8216; resource but it certainly isn&#8217;t difficult to use.  It works the exact same way &#8211; the PostRank API says it wants an array of urls (url[]) so we will pass in an array of urls as an argument (same thing for the feed_id[]).</p>
<p><img src="http://newthink.net/wp-content/uploads/2008/07/post_rank_api_doc.png" alt="post_rank API Doc" /></p>
<p>Following the same pattern as before, we just pass in the resource we want to use and the API arguments.</p>
<p><img src="http://newthink.net/wp-content/uploads/2008/07/postrank_usage_example.png" alt="postrank usage example." /></p>
<p>There really isn&#8217;t much more to it.  For now, you can find the python library here: <a href="http://newthink.net/~ash/software/postrankapi/">http://newthink.net/~ash/software/postrankapi/</a> When my new website is done, I plan to find a more permanent place for this (and future software).  Next step, creating an egg and integrating with ez_install.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newthink.net/2008/07/14/postrank-python-api/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
