
<?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: Twitter API Programming Tutorial With PHP &#8211; Intro</title>
	<atom:link href="http://brandontreb.com/twitter-api-programming-tutorial-with-php-getting-started/feed/" rel="self" type="application/rss+xml" />
	<link>http://brandontreb.com/twitter-api-programming-tutorial-with-php-getting-started/</link>
	<description>Code, Nerdyness, and Nonsense</description>
	<lastBuildDate>Thu, 11 Mar 2010 15:25:55 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: stella</title>
		<link>http://brandontreb.com/twitter-api-programming-tutorial-with-php-getting-started/comment-page-1/#comment-1006</link>
		<dc:creator>stella</dc:creator>
		<pubDate>Wed, 24 Feb 2010 00:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://brandontreb.com/?p=59#comment-1006</guid>
		<description>thank you thank you thank you!!!!! I will be following you on twitter</description>
		<content:encoded><![CDATA[<p>thank you thank you thank you!!!!! I will be following you on twitter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe</title>
		<link>http://brandontreb.com/twitter-api-programming-tutorial-with-php-getting-started/comment-page-1/#comment-1004</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Sun, 21 Feb 2010 05:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://brandontreb.com/?p=59#comment-1004</guid>
		<description>hey man, 

thanks a million .. ist is working on my site.
still one thing: twitter response with an 
xml output. can i suppress that in any way?

i tried  something like 
suppress_response_codes=true

but did not work..</description>
		<content:encoded><![CDATA[<p>hey man, </p>
<p>thanks a million .. ist is working on my site.<br />
still one thing: twitter response with an<br />
xml output. can i suppress that in any way?</p>
<p>i tried  something like<br />
suppress_response_codes=true</p>
<p>but did not work..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Playing with the Twitter API &#124; Chris Armstrong</title>
		<link>http://brandontreb.com/twitter-api-programming-tutorial-with-php-getting-started/comment-page-1/#comment-1001</link>
		<dc:creator>Playing with the Twitter API &#124; Chris Armstrong</dc:creator>
		<pubDate>Tue, 16 Feb 2010 01:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://brandontreb.com/?p=59#comment-1001</guid>
		<description>[...] a look at the Twitter API for a little experiment, using this tutorial.   Tue Feb 16 01:26:06 +0000 2010 9164019145 Just Rockin Out &lt;a [...]</description>
		<content:encoded><![CDATA[<p>[...] a look at the Twitter API for a little experiment, using this tutorial.   Tue Feb 16 01:26:06 +0000 2010 9164019145 Just Rockin Out &lt;a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bcarl314</title>
		<link>http://brandontreb.com/twitter-api-programming-tutorial-with-php-getting-started/comment-page-1/#comment-999</link>
		<dc:creator>bcarl314</dc:creator>
		<pubDate>Mon, 15 Feb 2010 16:59:08 +0000</pubDate>
		<guid isPermaLink="false">http://brandontreb.com/?p=59#comment-999</guid>
		<description>@esnod,

I had the sample problem (error 400) with the code provided, when I commented out the extra header settings 

	//curl_setopt($ch, CURLOPT_NOBODY, 0); 
	//curl_setopt($ch, CURLOPT_HEADER, 0); 
	//curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); 
	//curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

it worked for me.</description>
		<content:encoded><![CDATA[<p>@esnod,</p>
<p>I had the sample problem (error 400) with the code provided, when I commented out the extra header settings </p>
<p>	//curl_setopt($ch, CURLOPT_NOBODY, 0);<br />
	//curl_setopt($ch, CURLOPT_HEADER, 0);<br />
	//curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);<br />
	//curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);</p>
<p>it worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: esnod</title>
		<link>http://brandontreb.com/twitter-api-programming-tutorial-with-php-getting-started/comment-page-1/#comment-987</link>
		<dc:creator>esnod</dc:creator>
		<pubDate>Fri, 29 Jan 2010 16:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://brandontreb.com/?p=59#comment-987</guid>
		<description>I am an eighth grade teacher and I am trying to create a form that will submit my “week at a glance” (Monday-Friday) to a MySql database as well as Twitter.  Is that possible using the postToTwitter function or will the API not let me submit 5 items that quickly?  I want to enter the assignments for the week on Friday the week before and have it go to both places.  I appreciate any knowledge you would be willing to send my way.  Thanks so much.</description>
		<content:encoded><![CDATA[<p>I am an eighth grade teacher and I am trying to create a form that will submit my “week at a glance” (Monday-Friday) to a MySql database as well as Twitter.  Is that possible using the postToTwitter function or will the API not let me submit 5 items that quickly?  I want to enter the assignments for the week on Friday the week before and have it go to both places.  I appreciate any knowledge you would be willing to send my way.  Thanks so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chandresh modi</title>
		<link>http://brandontreb.com/twitter-api-programming-tutorial-with-php-getting-started/comment-page-1/#comment-985</link>
		<dc:creator>chandresh modi</dc:creator>
		<pubDate>Thu, 28 Jan 2010 04:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://brandontreb.com/?p=59#comment-985</guid>
		<description>Hi Brandon, above was cool explanation of implementing twitter in a website. But can u provide any help of how to get the latest reply for the question that i m posting to twitter. That is what exactly I want. Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi Brandon, above was cool explanation of implementing twitter in a website. But can u provide any help of how to get the latest reply for the question that i m posting to twitter. That is what exactly I want. Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maryleena</title>
		<link>http://brandontreb.com/twitter-api-programming-tutorial-with-php-getting-started/comment-page-1/#comment-982</link>
		<dc:creator>Maryleena</dc:creator>
		<pubDate>Fri, 22 Jan 2010 12:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://brandontreb.com/?p=59#comment-982</guid>
		<description>Funny, I get a Error 400, but that means:
400 Bad Request: The request was invalid.  An accompanying error message will explain why. This is the status code will be returned during rate limiting. 

But I did not do anything else on twitter to be over the rate limit...

Any ideas?</description>
		<content:encoded><![CDATA[<p>Funny, I get a Error 400, but that means:<br />
400 Bad Request: The request was invalid.  An accompanying error message will explain why. This is the status code will be returned during rate limiting. </p>
<p>But I did not do anything else on twitter to be over the rate limit&#8230;</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chaseasum</title>
		<link>http://brandontreb.com/twitter-api-programming-tutorial-with-php-getting-started/comment-page-1/#comment-972</link>
		<dc:creator>chaseasum</dc:creator>
		<pubDate>Tue, 19 Jan 2010 17:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://brandontreb.com/?p=59#comment-972</guid>
		<description>nice work will give it a try http://guymix.com</description>
		<content:encoded><![CDATA[<p>nice work will give it a try <a href="http://guymix.com" rel="nofollow">http://guymix.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muffinboy</title>
		<link>http://brandontreb.com/twitter-api-programming-tutorial-with-php-getting-started/comment-page-1/#comment-967</link>
		<dc:creator>Muffinboy</dc:creator>
		<pubDate>Tue, 19 Jan 2010 03:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://brandontreb.com/?p=59#comment-967</guid>
		<description>Why do I get Error 0? need help... thanks</description>
		<content:encoded><![CDATA[<p>Why do I get Error 0? need help&#8230; thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balazs</title>
		<link>http://brandontreb.com/twitter-api-programming-tutorial-with-php-getting-started/comment-page-1/#comment-958</link>
		<dc:creator>Balazs</dc:creator>
		<pubDate>Mon, 11 Jan 2010 02:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://brandontreb.com/?p=59#comment-958</guid>
		<description>@Steve Wanless

There are four possible fields:

status
in_reply_to_status_id
lat
long

To utilize these three additional fields, make the following changes:

1.) Update the parameters of the function:

function updateTwitter($status,$reply_id,$lat,$long){

2.) Now update the $postargs variable like so:

$postargs = &#039;status=&#039;.urlencode($status).&#039;&amp;in_reply_to_status_id=&#039;.$reply_id.&#039;&amp;lat=&#039;.$lat.&#039;&amp;long=&#039;.$long;


You can also tell the function to return an OK or Error code by replacing the echo statements at the bottom with return statements instead.

When you make the status update call, make sure to pass all of the new parameters, ie:

$tw_response = updateTwitter(&#039;This is a test response&#039;,&#039;100593049&#039;,&#039;43.399295&#039;,&#039;-122.493094&#039;);</description>
		<content:encoded><![CDATA[<p>@Steve Wanless</p>
<p>There are four possible fields:</p>
<p>status<br />
in_reply_to_status_id<br />
lat<br />
long</p>
<p>To utilize these three additional fields, make the following changes:</p>
<p>1.) Update the parameters of the function:</p>
<p>function updateTwitter($status,$reply_id,$lat,$long){</p>
<p>2.) Now update the $postargs variable like so:</p>
<p>$postargs = &#8217;status=&#8217;.urlencode($status).&#8217;&amp;in_reply_to_status_id=&#8217;.$reply_id.&#8217;&amp;lat=&#8217;.$lat.&#8217;&amp;long=&#8217;.$long;</p>
<p>You can also tell the function to return an OK or Error code by replacing the echo statements at the bottom with return statements instead.</p>
<p>When you make the status update call, make sure to pass all of the new parameters, ie:</p>
<p>$tw_response = updateTwitter(&#8216;This is a test response&#8217;,'100593049&#8242;,&#8217;43.399295&#8242;,&#8217;-122.493094&#8242;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>
