<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Fetching Tweets</title>
	<atom:link href="http://emmense.com/php-twitter/fetching-tweets/feed/" rel="self" type="application/rss+xml" />
	<link>http://emmense.com</link>
	<description>Just another Emmense.com weblog</description>
	<lastBuildDate>Mon, 15 Feb 2010 01:13:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<item>
		<title>By: Amey</title>
		<link>http://emmense.com/php-twitter/fetching-tweets/comment-page-1/#comment-113</link>
		<dc:creator>Amey</dc:creator>
		<pubDate>Sat, 26 Sep 2009 16:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://emmense.com/?page_id=41#comment-113</guid>
		<description>Great lib.. but i cant get it to work!!! :(

heres the code im using (ive just copy-pasted your code):

****************
username = &#039;myusername;
$t-&gt;password = &#039;mypassword&#039;;

$data = $t-&gt;userTimeline();

    foreach($data as $tweet) {
        echo $tweet-&gt;text;
        echo &quot;&quot;;
    }


?&gt;
******************
where am I going wrong?</description>
		<content:encoded><![CDATA[<p>Great lib.. but i cant get it to work!!! <img src='http://emmense.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>heres the code im using (ive just copy-pasted your code):</p>
<p>****************<br />
username = &#8216;myusername;<br />
$t-&gt;password = &#8216;mypassword&#8217;;</p>
<p>$data = $t-&gt;userTimeline();</p>
<p>    foreach($data as $tweet) {<br />
        echo $tweet-&gt;text;<br />
        echo &#8220;&#8221;;<br />
    }</p>
<p>?&gt;<br />
******************<br />
where am I going wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RPeters</title>
		<link>http://emmense.com/php-twitter/fetching-tweets/comment-page-1/#comment-115</link>
		<dc:creator>RPeters</dc:creator>
		<pubDate>Sat, 25 Jul 2009 13:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://emmense.com/?page_id=41#comment-115</guid>
		<description>Can&#039;t seem to get the status to take. It comes back as successful, but never appears on my twitter page</description>
		<content:encoded><![CDATA[<p>Can&#8217;t seem to get the status to take. It comes back as successful, but never appears on my twitter page</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmtriy</title>
		<link>http://emmense.com/php-twitter/fetching-tweets/comment-page-1/#comment-114</link>
		<dc:creator>Dmtriy</dc:creator>
		<pubDate>Fri, 24 Jul 2009 19:00:33 +0000</pubDate>
		<guid isPermaLink="false">http://emmense.com/?page_id=41#comment-114</guid>
		<description>Matt,

Thanks for the “@” workaround.

D</description>
		<content:encoded><![CDATA[<p>Matt,</p>
<p>Thanks for the “@” workaround.</p>
<p>D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://emmense.com/php-twitter/fetching-tweets/comment-page-1/#comment-107</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Sat, 18 Jul 2009 11:18:07 +0000</pubDate>
		<guid isPermaLink="false">http://emmense.com/?page_id=41#comment-107</guid>
		<description>I don&#039;t know WHY, but the getFriendsTimeline() simple runs the getUserTimeline() function, so you have to modify the class yourself to get your friends timeline (home page on twitter) WTF?!?!?!
The function is labbeld @depresiated...no its not! its the most important function you&#039;ll ever need!

So, you make a copy copy User timeline function, drop it in the friends function modifying the URL accordingly:

$request = &#039;http://twitter.com/statuses/friends_timeline.&#039; . $this-&gt;type . $qs;

Sorry....but once again...WTF?!?!!</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know WHY, but the getFriendsTimeline() simple runs the getUserTimeline() function, so you have to modify the class yourself to get your friends timeline (home page on twitter) WTF?!?!?!<br />
The function is labbeld @depresiated&#8230;no its not! its the most important function you&#8217;ll ever need!</p>
<p>So, you make a copy copy User timeline function, drop it in the friends function modifying the URL accordingly:</p>
<p>$request = &#8216;http://twitter.com/statuses/friends_timeline.&#8217; . $this-&gt;type . $qs;</p>
<p>Sorry&#8230;.but once again&#8230;WTF?!?!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matheus</title>
		<link>http://emmense.com/php-twitter/fetching-tweets/comment-page-1/#comment-109</link>
		<dc:creator>Matheus</dc:creator>
		<pubDate>Wed, 15 Jul 2009 02:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://emmense.com/?page_id=41#comment-109</guid>
		<description>I found a &#039;mistake&#039; at friendsTimeline()
- return $this-&gt;userTimeline( $id, $count, $since, $since_id, $page );

it must be the same as userTimeline
if( !in_array( $this-&gt;type, array( &#039;xml&#039;,&#039;json&#039;,&#039;rss&#039;,&#039;atom&#039; ) ) )
.
.
.

but using friends_timeline instead of user_timeline at that lines:
$request = &#039;http://twitter.com/statuses/user_timeline.&#039; . $this-&gt;type . $qs;
$request = &#039;http://twitter.com/statuses/user_timeline/&#039; . rawurlencode($id) . &#039;.&#039; . $this-&gt;type . $qs;

Isn&#039;t it?
At least it works for me.</description>
		<content:encoded><![CDATA[<p>I found a &#8216;mistake&#8217; at friendsTimeline()<br />
- return $this-&gt;userTimeline( $id, $count, $since, $since_id, $page );</p>
<p>it must be the same as userTimeline<br />
if( !in_array( $this-&gt;type, array( &#8216;xml&#8217;,'json&#8217;,'rss&#8217;,'atom&#8217; ) ) )<br />
.<br />
.<br />
.</p>
<p>but using friends_timeline instead of user_timeline at that lines:<br />
$request = &#8216;http://twitter.com/statuses/user_timeline.&#8217; . $this-&gt;type . $qs;<br />
$request = &#8216;http://twitter.com/statuses/user_timeline/&#8217; . rawurlencode($id) . &#8216;.&#8217; . $this-&gt;type . $qs;</p>
<p>Isn&#8217;t it?<br />
At least it works for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://emmense.com/php-twitter/fetching-tweets/comment-page-1/#comment-112</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sun, 05 Jul 2009 21:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://emmense.com/?page_id=41#comment-112</guid>
		<description>Just found the Google code page (http://code.google.com/p/php-twitter/), ignore my last couple responses. Nice work Aaron and whoever else is working on this project. Maybe in the header of the .php file you can put a link to http://code.google.com/p/php-twitter/ .</description>
		<content:encoded><![CDATA[<p>Just found the Google code page (<a href="http://code.google.com/p/php-twitter/" rel="nofollow">http://code.google.com/p/php-twitter/</a>), ignore my last couple responses. Nice work Aaron and whoever else is working on this project. Maybe in the header of the .php file you can put a link to <a href="http://code.google.com/p/php-twitter/" rel="nofollow">http://code.google.com/p/php-twitter/</a> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://emmense.com/php-twitter/fetching-tweets/comment-page-1/#comment-111</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sun, 05 Jul 2009 20:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://emmense.com/?page_id=41#comment-111</guid>
		<description>I changed the ratelimit function from this:

&lt;code
function ratelimit()
{
    if( !in_array( $this-&gt;type, array( &#039;xml&#039;,&#039;json&#039; ) ) )
        return false;
	$request = &#039;http://twitter.com/account/rate_limit_status.&#039; . $this-&gt;type;
	return $this-&gt;objectify( $out );
}
&lt;/code&gt;

to this:

&lt;code&gt;
function ratelimit()
{
    if( !in_array( $this-&gt;type, array( &#039;xml&#039;,&#039;json&#039; ) ) )
        return false;
	$request = &#039;http://twitter.com/account/rate_limit_status.&#039; . $this-&gt;type;
	return $this-&gt;objectify( $this-&gt;process( $request ) );
}
&lt;/code&gt;

Was the variable $out used in an earlier version?</description>
		<content:encoded><![CDATA[<p>I changed the ratelimit function from this:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">type, array( 'xml','json' ) ) )<br />
&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; $request = 'http://twitter.com/account/rate_limit_status.' . $this-&gt;type;<br />
&nbsp; &nbsp; return $this-&gt;objectify( $out );<br />
}</div></td></tr></tbody></table></div>
<p>to this:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">function ratelimit()<br />
{<br />
&nbsp; &nbsp; if( !in_array( $this-&gt;type, array( 'xml','json' ) ) )<br />
&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />
&nbsp; &nbsp; $request = 'http://twitter.com/account/rate_limit_status.' . $this-&gt;type;<br />
&nbsp; &nbsp; return $this-&gt;objectify( $this-&gt;process( $request ) );<br />
}</div></td></tr></tbody></table></div>
<p>Was the variable $out used in an earlier version?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://emmense.com/php-twitter/fetching-tweets/comment-page-1/#comment-108</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sun, 05 Jul 2009 19:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://emmense.com/?page_id=41#comment-108</guid>
		<description>I was able to fix the above problem by putting a space in front of the &quot;@&quot;. Working code looks like this:

&lt;code&gt;
&lt;?php
$t = new twitter;
$t-&gt;username = &#039;user&#039;;
$t-&gt;password = &#039;password&#039;;

$data = $t-&gt;update(&#039;test1 @anotherUser&#039;);
print &#039;&lt;pre&gt;&#039;; print_r($data); print &#039;&lt;/pre&gt;&#039;;
print &#039;&lt;pre&gt;&#039;; print_r($t-&gt;responseInfo); print &#039;&lt;/pre&gt;&#039;;

$data = $t-&gt;update(&#039; @anotherUser test1&#039;);
print &#039;&lt;pre&gt;&#039;; print_r($data); print &#039;&lt;/pre&gt;&#039;;
print &#039;&lt;pre&gt;&#039;; print_r($t-&gt;responseInfo); print &#039;&lt;/pre&gt;&#039;;
?&gt;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I was able to fix the above problem by putting a space in front of the &#8220;@&#8221;. Working code looks like this:</p>
<div class="codecolorer-container text mac-classic" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;?php<br />
$t = new twitter;<br />
$t-&gt;username = 'user';<br />
$t-&gt;password = 'password';<br />
<br />
$data = $t-&gt;update('test1 @anotherUser');<br />
print '&lt;pre&gt;'; print_r($data); print '&lt;/pre&gt;';<br />
print '&lt;pre&gt;'; print_r($t-&gt;responseInfo); print '&lt;/pre&gt;';<br />
<br />
$data = $t-&gt;update(' @anotherUser test1');<br />
print '&lt;pre&gt;'; print_r($data); print '&lt;/pre&gt;';<br />
print '&lt;pre&gt;'; print_r($t-&gt;responseInfo); print '&lt;/pre&gt;';<br />
?&gt;</div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://emmense.com/php-twitter/fetching-tweets/comment-page-1/#comment-96</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sun, 05 Jul 2009 18:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://emmense.com/?page_id=41#comment-96</guid>
		<description>The second status update fails but the first is successful. Why does having the &quot;@&quot; in the front destroy the update? How  can I fix this?

username = &#039;user&#039;;
$t-&gt;password = &#039;password&#039;;

$data = $t-&gt;update(&#039;test1 @anotherUser&#039;);
print &#039;&#039;; print_r($data); print &#039;&#039;;
print &#039;&#039;; print_r($t-&gt;responseInfo); print &#039;&#039;;

$data = $t-&gt;update(&#039;@anotherUser test1&#039;);
print &#039;&#039;; print_r($data); print &#039;&#039;;
print &#039;&#039;; print_r($t-&gt;responseInfo); print &#039;&#039;;
?&gt;</description>
		<content:encoded><![CDATA[<p>The second status update fails but the first is successful. Why does having the &#8220;@&#8221; in the front destroy the update? How  can I fix this?</p>
<p>username = &#8216;user&#8217;;<br />
$t-&gt;password = &#8216;password&#8217;;</p>
<p>$data = $t-&gt;update(&#8216;test1 @anotherUser&#8217;);<br />
print &#8221;; print_r($data); print &#8221;;<br />
print &#8221;; print_r($t-&gt;responseInfo); print &#8221;;</p>
<p>$data = $t-&gt;update(&#8216;@anotherUser test1&#8242;);<br />
print &#8221;; print_r($data); print &#8221;;<br />
print &#8221;; print_r($t-&gt;responseInfo); print &#8221;;<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lazlo</title>
		<link>http://emmense.com/php-twitter/fetching-tweets/comment-page-1/#comment-110</link>
		<dc:creator>Lazlo</dc:creator>
		<pubDate>Mon, 29 Jun 2009 19:16:23 +0000</pubDate>
		<guid isPermaLink="false">http://emmense.com/?page_id=41#comment-110</guid>
		<description>Is there a method that uses this link to grab data from:

&quot;http://twitter.com/statuses/friends_timeline.json&quot;

I see that userTimeline grabs from

&quot;http://twitter.com/statuses/user_timeline&quot;

but this is not the data I am trying to capture.

I&#039;m not seeing a function that really gets to the friends_timeline information.  Is it in the class.twitter.php file that I downloaded?  I can&#039;t find it.  I&#039;m trying to emulate the twitter.com homepage that an authenticated user gets.

Any help achieving this would be greatly appreciated!

Thanks!</description>
		<content:encoded><![CDATA[<p>Is there a method that uses this link to grab data from:</p>
<p>&#8220;http://twitter.com/statuses/friends_timeline.json&#8221;</p>
<p>I see that userTimeline grabs from</p>
<p>&#8220;http://twitter.com/statuses/user_timeline&#8221;</p>
<p>but this is not the data I am trying to capture.</p>
<p>I&#8217;m not seeing a function that really gets to the friends_timeline information.  Is it in the class.twitter.php file that I downloaded?  I can&#8217;t find it.  I&#8217;m trying to emulate the twitter.com homepage that an authenticated user gets.</p>
<p>Any help achieving this would be greatly appreciated!</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
