<?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>Paintstrokes on the Digital Canvas &#187; twitter</title>
	<atom:link href="http://blog.digitalcanvas.in/category/social-media/twitter-social-media/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.digitalcanvas.in</link>
	<description>Blog hosting the random technical, creative &#38; stumbling experiences of the Digital Canvas team</description>
	<lastBuildDate>Thu, 27 May 2010 11:53:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>A Quick Reference to the twitter API</title>
		<link>http://blog.digitalcanvas.in/a-quick-reference-to-the-twitter-api/</link>
		<comments>http://blog.digitalcanvas.in/a-quick-reference-to-the-twitter-api/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 07:53:14 +0000</pubDate>
		<dc:creator>kaustubh</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter API]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://blog.digitalcanvas.in/?p=30</guid>
		<description><![CDATA[In the past few weeks whenever I opened my browser the first link I would open was http://apiwiki.twitter.com/. Actually third, followed by my obsession with facebook and gmail. The link contains a fine description of what is called an API(Application Programming Interface) for Twitter. Almost anyone can understand the API through its documentation, but the [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px; margin-bottom: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.digitalcanvas.in%2Fa-quick-reference-to-the-twitter-api%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.digitalcanvas.in%2Fa-quick-reference-to-the-twitter-api%2F&amp;source=_digitalcanvas&amp;style=normal&amp;service=bit.ly&amp;hashtags=API,Reference,Twitter" height="61" width="50" /><br />
			</a>
		</div>
<p>In the past few weeks whenever I opened my browser the first link I would open was http://apiwiki.twitter.com/. Actually third, followed by my obsession with facebook and gmail. The link contains a fine description of what is called an API(Application Programming Interface) for Twitter. Almost anyone can understand the API through its documentation, but the only pain is that there are infinite pages describing each and every feature which some people may not want to go through. And its still in its first phase! Having gone through most of them I give here a brief version of all the methods(actions performed through the API). For details, ofcourse, one can visit the mentioned link.</p>
<p>The Twitter API is actually in three parts<br />
1)Search<br />
2)REST(literally)<br />
3)Streaming</p>
<p>I have presented all the methods as cool looking mind maps. Just seperate the boxes with &#8216;/&#8217; and you have the URL for the method.</p>
<h2>1) Twitter Search API</h2>
<p>All the search API methods are shown here.<br />
All the results can be received in json format, except the general search which also supports ATOM.<br />
In the general search, the maximum number of tweets that can be recieved are 1500, a maximum of 100 per page.<br />
No authentication is required.<br />
<object id="bblviewer" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="450" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="SeamlessTabbing" value="false" /><param name="AllowScriptAccess" value="always" /><param name="FlashVars" value="_sid=571216&amp;_title=twitter%20Search%20API&amp;_z=75&amp;_pw=yazqCKESEC40UMThjVlNpYy5xTHV5SQ" /><param name="src" value="http://bubbl.us/sys/view.swf?sid=571216&amp;pw=yazqCKESEC40UMThjVlNpYy5xTHV5SQ" /><param name="name" value="bblviewer" /><param name="flashvars" value="_sid=571216&amp;_title=twitter%20Search%20API&amp;_z=75&amp;_pw=yazqCKESEC40UMThjVlNpYy5xTHV5SQ" /><embed id="bblviewer" type="application/x-shockwave-flash" width="560" height="450" src="http://bubbl.us/sys/view.swf?sid=571216&amp;pw=yazqCKESEC40UMThjVlNpYy5xTHV5SQ" name="bblviewer" flashvars="_sid=571216&amp;_title=twitter%20Search%20API&amp;_z=75&amp;_pw=yazqCKESEC40UMThjVlNpYy5xTHV5SQ" allowscriptaccess="always" seamlesstabbing="false" quality="high"></embed></object></p>
<h2>2) REST API</h2>
<p>This includes all the methods that are generally used by a user,  like updating statuses, adding friends, etc etc. The methods which return results are recieved as both json and XML. Some of them also support ATOM and RSS.</p>
<p>The methods are self explainatory. Authentication is required. A user can authenticate by a valid twitter id.<br />
<object id="bblviewer" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="450" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="SeamlessTabbing" value="false" /><param name="AllowScriptAccess" value="always" /><param name="FlashVars" value="_sid=571210&amp;_title=twitter%20REST%20API&amp;_z=75&amp;_pw=yazqCKESEC40UMThhaC9VbVgzVVFNUQ" /><param name="src" value="http://bubbl.us/sys/view.swf?sid=571210&amp;pw=yazqCKESEC40UMThhaC9VbVgzVVFNUQ" /><param name="name" value="bblviewer" /><param name="flashvars" value="_sid=571210&amp;_title=twitter%20REST%20API&amp;_z=75&amp;_pw=yazqCKESEC40UMThhaC9VbVgzVVFNUQ" /><embed id="bblviewer" type="application/x-shockwave-flash" width="560" height="450" src="http://bubbl.us/sys/view.swf?sid=571210&amp;pw=yazqCKESEC40UMThhaC9VbVgzVVFNUQ" name="bblviewer" flashvars="_sid=571210&amp;_title=twitter%20REST%20API&amp;_z=75&amp;_pw=yazqCKESEC40UMThhaC9VbVgzVVFNUQ" allowscriptaccess="always" seamlesstabbing="false" quality="high"></embed></object><br />
<object id="bblviewer" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="450" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="SeamlessTabbing" value="false" /><param name="AllowScriptAccess" value="always" /><param name="FlashVars" value="_sid=510270&amp;_title=Public%20twitter%20API&amp;_z=75&amp;_pw=yazqCKESEC40UMThUWDBRQm1PMkhnQQ" /><param name="src" value="http://bubbl.us/sys/view.swf?sid=510270&amp;pw=yazqCKESEC40UMThUWDBRQm1PMkhnQQ" /><param name="name" value="bblviewer" /><param name="flashvars" value="_sid=510270&amp;_title=Public%20twitter%20API&amp;_z=75&amp;_pw=yazqCKESEC40UMThUWDBRQm1PMkhnQQ" /><embed id="bblviewer" type="application/x-shockwave-flash" width="560" height="450" src="http://bubbl.us/sys/view.swf?sid=510270&amp;pw=yazqCKESEC40UMThUWDBRQm1PMkhnQQ" name="bblviewer" flashvars="_sid=510270&amp;_title=Public%20twitter%20API&amp;_z=75&amp;_pw=yazqCKESEC40UMThUWDBRQm1PMkhnQQ" allowscriptaccess="always" seamlesstabbing="false" quality="high"></embed></object></p>
<h2>3) Streaming API</h2>
<p>The methods used to get runtime tweets &amp; retweets come under streaming API. There are 4 methods: filter, firehose, retweet and sample.</p>
<ul>
<li> Filter requires basic authentication using a twitter id. There is a restriction on the number of keywords, 200, and the number of userids to be followed, 400 at the default access level to the twitter database. Further access requires special arrangement with twitter.</li>
<li> Sample returns random tweets from the active stream and requires basic authentication.</li>
<li> Firehose returns all public statuses and is not available with basic authentication &amp; requires a special setup with twitter.</li>
<li> Retweet returns all retweets and is not available with basic authentication &amp; requires a special setup with twitter.</li>
</ul>
<p>Again, all the results can be requested in JSON or XML format.</p>
<p><object id="bblviewer" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="450" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="SeamlessTabbing" value="false" /><param name="AllowScriptAccess" value="always" /><param name="FlashVars" value="_sid=571213&amp;_title=twitter%20Streaming%20API&amp;_z=75&amp;_pw=yazqCKESEC40UMThTR2txOC9xQWhlWQ" /><param name="src" value="http://bubbl.us/sys/view.swf?sid=571213&amp;pw=yazqCKESEC40UMThTR2txOC9xQWhlWQ" /><param name="name" value="bblviewer" /><param name="flashvars" value="_sid=571213&amp;_title=twitter%20Streaming%20API&amp;_z=75&amp;_pw=yazqCKESEC40UMThTR2txOC9xQWhlWQ" /><embed id="bblviewer" type="application/x-shockwave-flash" width="560" height="450" src="http://bubbl.us/sys/view.swf?sid=571213&amp;pw=yazqCKESEC40UMThTR2txOC9xQWhlWQ" name="bblviewer" flashvars="_sid=571213&amp;_title=twitter%20Streaming%20API&amp;_z=75&amp;_pw=yazqCKESEC40UMThTR2txOC9xQWhlWQ" allowscriptaccess="always" seamlesstabbing="false" quality="high"></embed></object></p>
<p>The Twitter API is still being developed and new features/more methods may be added later.<br />
For updates, discussions or queries regarding the API go to their google group: http://groups.google.com/group/twitter-development-talk.</p>
<p>I hope this helps make things easier for those developing with the API.</p>
<p><em>About the author: Kaustubh is a second year student from IIT Bombay &amp; interned with us for 2 weeks, in January. You can </em>follow <em>him on twitter on @<a title="Kaustubh on twitter" href="http://twitter.com/kaustubhsinghal" target="_blank">kaustubhsinghal</a></em></p>
<p><em>There are a few open ends remaining in the above references. We would be more than happy to receive your suggestions, ideas &amp; improvements on the reference. We will keep updating the mindmaps. Our website is being worked upon. Once it is done, you will find JPEGs for these in the Resources section, for you to save to your computer.<br />
</em></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Liked it? Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  href="http://twitter.com/home?status=A%20Quick%20Reference%20to%20the%20twitter%20API%20-%20http%3A%2F%2Fblog.digitalcanvas.in%2Fa-quick-reference-to-the-twitter-api%2F" title="Twitter"><img src="http://blog.digitalcanvas.in/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" class="thickbox" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.digitalcanvas.in%2Fa-quick-reference-to-the-twitter-api%2F&amp;t=A%20Quick%20Reference%20to%20the%20twitter%20API?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://blog.digitalcanvas.in/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" class="thickbox" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.digitalcanvas.in%2Fa-quick-reference-to-the-twitter-api%2F&amp;title=A%20Quick%20Reference%20to%20the%20twitter%20API&amp;source=Paintstrokes+on+the+Digital+Canvas+Blog+hosting+the+random+technical%2C+creative+%26amp%3B+stumbling+experiences+of+the+Digital+Canvas+team&amp;summary=In%20the%20past%20few%20weeks%20whenever%20I%20opened%20my%20browser%20the%20first%20link%20I%20would%20open%20was%20http%3A%2F%2Fapiwiki.twitter.com%2F.%20Actually%20third%2C%20followed%20by%20my%20obsession%20with%20facebook%20and%20gmail.%20The%20link%20contains%20a%20fine%20description%20of%20what%20is%20called%20an%20API%28Applicatio?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://blog.digitalcanvas.in/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.digitalcanvas.in%2Fa-quick-reference-to-the-twitter-api%2F&amp;title=A%20Quick%20Reference%20to%20the%20twitter%20API" title="StumbleUpon"><img src="http://blog.digitalcanvas.in/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" class="thickbox" href="http://reddit.com/submit?url=http%3A%2F%2Fblog.digitalcanvas.in%2Fa-quick-reference-to-the-twitter-api%2F&amp;title=A%20Quick%20Reference%20to%20the%20twitter%20API?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://blog.digitalcanvas.in/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" class="thickbox" href="http://technorati.com/faves?add=http%3A%2F%2Fblog.digitalcanvas.in%2Fa-quick-reference-to-the-twitter-api%2F?TB_iframe=true&amp;height=500&amp;width=900"><img src="http://blog.digitalcanvas.in/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  href="mailto:?subject=A%20Quick%20Reference%20to%20the%20twitter%20API&amp;body=http%3A%2F%2Fblog.digitalcanvas.in%2Fa-quick-reference-to-the-twitter-api%2F" title="email"><img src="http://blog.digitalcanvas.in/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.digitalcanvas.in/a-quick-reference-to-the-twitter-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

