<?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>Matt MacAulay &#187; Twitter</title>
	<atom:link href="http://mattmacaulay.ca/category/twitter/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattmacaulay.ca</link>
	<description>Software Development &#124; Technology &#124; Meatspace</description>
	<lastBuildDate>Thu, 06 May 2010 18:39:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Twitter API strips retweets out of user timelines</title>
		<link>http://mattmacaulay.ca/2010/02/05/twitter-api-strips-retweets-out-of-user-timelines/</link>
		<comments>http://mattmacaulay.ca/2010/02/05/twitter-api-strips-retweets-out-of-user-timelines/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 19:06:59 +0000</pubDate>
		<dc:creator>mmacaulay</dc:creator>
				<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://mattmacaulay.ca/?p=11</guid>
		<description><![CDATA[Just discovered an interesting gotcha in the Twitter API: calls to the user_timeline method will have retweets stripped out. From http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-user_timeline: Note: For backwards compatibility reasons, retweets are stripped out of the user_timeline when calling in XML or JSON (they appear with &#8216;RT&#8217; in RSS and Atom). If you&#8217;d like them included, you can merge [...]]]></description>
			<content:encoded><![CDATA[<p>Just discovered an interesting gotcha in the Twitter API: calls to the user_timeline method will have retweets stripped out.</p>
<p>From <a href="http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-user_timeline">http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses-user_timeline</a>:</p>
<blockquote><p>
Note: For backwards compatibility reasons, retweets are stripped out of the user_timeline when calling in XML or JSON (they appear with &#8216;RT&#8217; in RSS and Atom). If you&#8217;d like them included, you can merge them in from statuses retweeted_by_me.
</p></blockquote>
<p>Huh. So in other words, making a call like this:</p>
<p>http://twitter.com/statuses/user_timeline.xml?screen_name=mmacaulay&#038;count=1</p>
<p>might give you an empty result. Sneaky. Even if you increase the count parameter there or remove it altogether, you might end up with an empty result if the user does nothing but retweet things. If you want to see the same thing as you&#8217;d see by viewing the user&#8217;s timeline on twitter.com you&#8217;ll have to make an extra call to retweeted_by_me. </p>
<p>Dear Twitter developers: it would be nice if instead of stripping out the retweets you did one of two things:</p>
<ul>
<li>If I make a request with count=n, return the <strong>first n non-retweet statuses</strong></li>
<li>Allow me to specify whether or not retweets are included in the response via another parameter</li>
</ul>
<p>Oh well. It&#8217;s Friday.</p>
]]></content:encoded>
			<wfw:commentRss>http://mattmacaulay.ca/2010/02/05/twitter-api-strips-retweets-out-of-user-timelines/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
