<?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>.Net Geek &#187; Twitter</title>
	<atom:link href="http://www.aakashjain.com/tag/twitter/feed" rel="self" type="application/rss+xml" />
	<link>http://www.aakashjain.com</link>
	<description>Technology, musings and stuff by Aakash Jain</description>
	<lastBuildDate>Thu, 11 Aug 2011 05:09:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to Create IM BOT in Minutes</title>
		<link>http://www.aakashjain.com/misc/how-to-create-im-bot-in-minutes-854</link>
		<comments>http://www.aakashjain.com/misc/how-to-create-im-bot-in-minutes-854#comments</comments>
		<pubDate>Mon, 27 Jul 2009 08:21:21 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Gtalk]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[IM]]></category>
		<category><![CDATA[IM BOT]]></category>
		<category><![CDATA[Imified]]></category>
		<category><![CDATA[Open API]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Twitter Bot]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/?p=854</guid>
		<description><![CDATA[Recently I created an IM BOT that works with GTalk, Yahoo Messenger, Windows Live and other popular instant messaging clients. To create your own IM Bot you need to have some very basic programming skills. You can use any programming language, I prefer PHP. You also need to have web space to host your bot. [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I created an IM BOT that works with GTalk, Yahoo Messenger, Windows Live and other popular instant messaging clients.</p>
<p>To create your own IM Bot you need to have some very basic programming skills. You can use any programming language, I prefer PHP. You also need to have web space to host your bot.</p>
<p>For example, I have created a Twitter Bot that can be used to tweet in your twitter account using any IM client.</p>
<p>If you like to write a personal IM bot, just follow these simple steps:</p>
<p><strong>Step 1:</strong> Register at <a href="www.imified.com" target="_blank">Imified</a></p>
<p><strong>Step 2:</strong> Create your Bot which is just a simple script which resides on your webserver. It can be in any programming language.</p>
<p><strong>Step 3:</strong> Copy the path of your script in the clipboard shown below.</p>
<p><img class="alignleft size-full wp-image-859" title="Imified" src="http://www.aakashjain.com/wp-content/uploads/2009/07/twitter1.jpg" alt="Imified" width="564" height="115" /></p>
<p>Your Bot is ready to serve now.</p>
<p>The script I wrote is self-explanatory.<br />
<strong>Just Add Tweetbot@bot.im in your IM client to try it.</strong></p>
<pre name="code" class="php">//Twitter.PHP
require('TwitterAPI.php');

if($_REQUEST[('value'.($_REQUEST['step']-1))]=="reset")
{
	echo " start all over again now ";
}

else if($_REQUEST[('value'.($_REQUEST['step']-1))]=="?")
{
	echo " Hi, I am a Twitter Bot, you can tweet and see friend's timeline using me.
 type 'reset' to start again at any stage.";}

else{

	switch ($_REQUEST['step'])
			{
				case 1:
				echo "Enter Twitter UserName:";
				break;

				case 2:
				echo $_REQUEST['value1'];
				echo ",Enter Your Password, dont worry I dont store your password:";
				break;

				case 3:
				echo "Thankyou for submitting details
                                        Type 'tweet' to post a tweet and 'friend' to see friend's timeline";
				break;

				case 4:
				if (trim($_REQUEST['value3']," ")=="tweet")
				{
					echo "Enter Message to tweet";
				}

				else if($_REQUEST['value3']=="friend")
				{
					echo "I am working on this function, will publish it soon";
				}
				else
				{
					echo "enter correct choice ";
				}
				break;

				case 5:
				$result=tweet($_REQUEST['value1'], $_REQUEST['value2'], $_REQUEST['value4']);
				echo $result;
				}

}</pre>
<p><strong>No, This is not the only code you require. We need to use Twitter API as well, I have put that code in a seprate file.<br />
You can make a number of Applications using different Open APIs</strong></p>
<pre name="code" class="php">//TwitterAPI.php
function tweet($username,$password,$message)
{

// The twitter API address
$url = 'http://twitter.com/statuses/update.xml'; 

// Set up and execute the curl process
$curl_handle = curl_init();
curl_setopt($curl_handle, CURLOPT_URL, "$url");
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl_handle, CURLOPT_POST, 1);
curl_setopt($curl_handle, CURLOPT_POSTFIELDS, "status=$message");
curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password"); 

$resultArray = curl_getinfo($curl_handle);

    curl_close($curl_handle);

    if($resultArray['http_code'] == "200")
		{
    $result="Yipee, <a href="http://twitter.com/'.$username.'">Check your profile</a> ";
		}
	else
		{
		 $result="Error , Username or Password is not correct ";
		}
	return $result;
}</pre>
<p>Learn How To Use <a href="http://www.imified.com/developers/api" target="_blank">Imified API</a><br />
<strong>Happy Coding!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/misc/how-to-create-im-bot-in-minutes-854/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Twitter is Every Where Now</title>
		<link>http://www.aakashjain.com/misc/twitter-is-every-where-now-571</link>
		<comments>http://www.aakashjain.com/misc/twitter-is-every-where-now-571#comments</comments>
		<pubDate>Sun, 22 Mar 2009 16:42:22 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[Funny]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/?p=571</guid>
		<description><![CDATA[This is kind of funny video I encountered but still Twittering is the buzz word among web communities.]]></description>
			<content:encoded><![CDATA[<p>This is kind of funny video I encountered but still Twittering is the buzz word among web communities.</p>
<p><object width="425" height="344" data="http://www.youtube.com/v/PN2HAroA12w&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/PN2HAroA12w&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/misc/twitter-is-every-where-now-571/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Twitter turns 3</title>
		<link>http://www.aakashjain.com/misc/twitter-3-birthday-556</link>
		<comments>http://www.aakashjain.com/misc/twitter-3-birthday-556#comments</comments>
		<pubDate>Sat, 21 Mar 2009 20:43:01 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Cake]]></category>
		<category><![CDATA[Happy Birthday]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Twitter Applications]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/?p=556</guid>
		<description><![CDATA[It&#8217;s Twitter&#8217;s 3rd birthday. Happy Birthday Twitter! Twitter reportedly grown over 1300% last year (reported on Mashable). Now this Micro blogging service is everywhere. It&#8217;s fun, easy and more useful with over 100s of applications supporting it. Keep going and growing. Photo: Courtesy of productivedreams]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-568 alignnone" title="Twitter" src="http://www.aakashjain.com/wp-content/uploads/2009/03/icon_c_64.png" alt="Twitter" width="64" height="64" /> <img class="alignnone size-full wp-image-569" title="Twitter Bird" src="http://www.aakashjain.com/wp-content/uploads/2009/03/icon_c_128.png" alt="Twitter Bird" width="128" height="128" /> <img class="alignnone size-full wp-image-567" title="Twitter 3rd Birthday" src="http://www.aakashjain.com/wp-content/uploads/2009/03/icon_c.png" alt="Twitter 3rd Birthday" width="256" height="256" /></p>
<p style="text-align: left;"><span style="color: #c30835;"><strong>It&#8217;s Twitter&#8217;s 3rd birthday. Happy Birthday Twitter!</strong></span></p>
<p style="text-align: left;">Twitter <a href="http://mashable.com/2009/03/16/twitter-growth-rate-versus-facebook/" target="_blank">reportedly</a> grown over 1300% last year (reported on <a href="http://mashable.com/2009/03/21/happy-birthday-twitter/" target="_blank">Mashable</a>). Now this Micro blogging service is everywhere. It&#8217;s fun, easy and more useful with over <a href="http://www.smashingmagazine.com/2009/03/17/99-essential-twitter-tools-and-applications/" target="_blank">100s of applications</a> supporting it.</p>
<p style="text-align: left;">Keep going and growing. <img src='http://www.aakashjain.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<address style="text-align: left;">Photo: Courtesy of <a href="http://www.productivedreams.com/its-twitter-time-free-vector-icon-set/" target="_blank">productivedreams</a></address>
<address style="text-align: left;">
</address>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/misc/twitter-3-birthday-556/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Twitter Bug?</title>
		<link>http://www.aakashjain.com/misc/twitter-bug-510</link>
		<comments>http://www.aakashjain.com/misc/twitter-bug-510#comments</comments>
		<pubDate>Sat, 21 Mar 2009 10:15:37 +0000</pubDate>
		<dc:creator>Aakash</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tweaking]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.aakashjain.com/?p=510</guid>
		<description><![CDATA[Hey, this is really strange issue I faced today. I don&#8217;t know if it happens to anyone out there, but I guess this is a Bug with Twitter. I was playing around with my account when I changed my user name from &#8220;aakash&#8221; to &#8220;Aakash&#8221;. Curiously, I tried to create a new user as &#8220;aakash&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Hey, this is really strange issue I faced today. I don&#8217;t know if it happens to anyone out there, but I guess this is a Bug with Twitter. I was playing around with my account when I changed my user name from &#8220;aakash&#8221; to &#8220;Aakash&#8221;. Curiously, I tried to create a new user as &#8220;aakash&#8221; in twitter with my other email-id. To my surprise, it was created successfully. WTH ! This means I was having two different accounts &#8220;aakash&#8221; and &#8220;Aakash&#8221;. A got a mail from Twitter that confirmed the successful creation of this new Id. Just to dig it deep, I tried to logout and login again and play more but then it failed to login my newly created account. I was not able to login into any of the both account and that moment I feel that I will lost all my updates and followers. Finally, I have to use “forget password link” (my email address and ph. number) to recover my password for my original account. Now I am using my email id to login as username doesn&#8217;t work. I am not sure if it happens due to delay in update in databases between servers. I would like if you could try it on your end too and let me know your experience. If it is a Bug then it need a fix.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.aakashjain.com/misc/twitter-bug-510/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

