<?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: Integrating With Twitter API In CodeIgniter</title>
	<atom:link href="http://amiworks.co.in/talk/integrating-twitter-api-with-codeigniter/feed/" rel="self" type="application/rss+xml" />
	<link>http://amiworks.co.in/talk/integrating-twitter-api-with-codeigniter/</link>
	<description>all about my work</description>
	<lastBuildDate>Tue, 10 Jan 2012 10:04:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Tahsin Hasan</title>
		<link>http://amiworks.co.in/talk/integrating-twitter-api-with-codeigniter/comment-page-1/#comment-35537</link>
		<dc:creator>Tahsin Hasan</dc:creator>
		<pubDate>Wed, 07 Jul 2010 17:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://amiworks.co.in/talk/?p=252#comment-35537</guid>
		<description>hello,

thanks for the post, you can find a twitter codeigniter library here on &lt;a href=&quot;http://newdailyblog.blogspot.com/2010/07/download-tweetsigniter.html&quot; rel=&quot;nofollow&quot;&gt;http://newdailyblog.blogspot.com/2010/07/download-tweetsigniter.html&lt;/a&gt;. Thanks.</description>
		<content:encoded><![CDATA[<p>hello,</p>
<p>thanks for the post, you can find a twitter codeigniter library here on <a href="http://newdailyblog.blogspot.com/2010/07/download-tweetsigniter.html" rel="nofollow">http://newdailyblog.blogspot.com/2010/07/download-tweetsigniter.html</a>. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sbudah</title>
		<link>http://amiworks.co.in/talk/integrating-twitter-api-with-codeigniter/comment-page-1/#comment-26048</link>
		<dc:creator>Sbudah</dc:creator>
		<pubDate>Fri, 04 Dec 2009 09:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://amiworks.co.in/talk/?p=252#comment-26048</guid>
		<description>Pursuant to David&#039;s method - I simply expanded the main twitter class as follows:
- Capitalize the class name to adhere to CI standards
and added the following function after the variables declarations:
/*
 * Authethicate the user - must be run after loading the library
 * @param array $settings contains user details (username, password and user_agent).
 */
function authenticate($settings){
		$this-&gt;username     = $settings[&#039;un&#039;];
		$this-&gt;password     = $settings[&#039;pw&#039;];
		$this-&gt;user_agent   = $settings[&#039;ua&#039;];
		return;
}

Usage guide on your controller:
$settings = array(&#039;un&#039;=&gt;&#039;username&#039;, 
		&#039;pw&#039;=&gt;&#039;password&#039;, 
		&#039;ua&#039;=&gt;&#039;user_agent&#039;);
$this-&gt;load-&gt;library(&#039;twitter&#039;);
$this-&gt;twitter-&gt;authenticate($settings);</description>
		<content:encoded><![CDATA[<p>Pursuant to David&#8217;s method &#8211; I simply expanded the main twitter class as follows:<br />
- Capitalize the class name to adhere to CI standards<br />
and added the following function after the variables declarations:<br />
/*<br />
 * Authethicate the user &#8211; must be run after loading the library<br />
 * @param array $settings contains user details (username, password and user_agent).<br />
 */<br />
function authenticate($settings){<br />
		$this-&gt;username     = $settings['un'];<br />
		$this-&gt;password     = $settings['pw'];<br />
		$this-&gt;user_agent   = $settings['ua'];<br />
		return;<br />
}</p>
<p>Usage guide on your controller:<br />
$settings = array(&#8216;un&#8217;=&gt;&#8217;username&#8217;,<br />
		&#8216;pw&#8217;=&gt;&#8217;password&#8217;,<br />
		&#8216;ua&#8217;=&gt;&#8217;user_agent&#8217;);<br />
$this-&gt;load-&gt;library(&#8216;twitter&#8217;);<br />
$this-&gt;twitter-&gt;authenticate($settings);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit Kumar Singh</title>
		<link>http://amiworks.co.in/talk/integrating-twitter-api-with-codeigniter/comment-page-1/#comment-14922</link>
		<dc:creator>Amit Kumar Singh</dc:creator>
		<pubDate>Tue, 28 Jul 2009 01:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://amiworks.co.in/talk/?p=252#comment-14922</guid>
		<description>@nishantha You need to enable curl extension in php.ini</description>
		<content:encoded><![CDATA[<p>@nishantha You need to enable curl extension in php.ini</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nishantha</title>
		<link>http://amiworks.co.in/talk/integrating-twitter-api-with-codeigniter/comment-page-1/#comment-14583</link>
		<dc:creator>nishantha</dc:creator>
		<pubDate>Fri, 24 Jul 2009 10:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://amiworks.co.in/talk/?p=252#comment-14583</guid>
		<description>Fatal error: Call to undefined function curl_init() in C:\wamp\www\CI1\system\application\libraries\twitter.php on line 713</description>
		<content:encoded><![CDATA[<p>Fatal error: Call to undefined function curl_init() in C:\wamp\www\CI1\system\application\libraries\twitter.php on line 713</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pete</title>
		<link>http://amiworks.co.in/talk/integrating-twitter-api-with-codeigniter/comment-page-1/#comment-5730</link>
		<dc:creator>pete</dc:creator>
		<pubDate>Tue, 24 Feb 2009 16:11:02 +0000</pubDate>
		<guid isPermaLink="false">http://amiworks.co.in/talk/?p=252#comment-5730</guid>
		<description>I&#039;m a newbie in php,but I like your tutorial.How do you integrate twitpic api as a buddypress plugin which is a social wordpress MU CMS?
www.buddypress.org</description>
		<content:encoded><![CDATA[<p>I&#8217;m a newbie in php,but I like your tutorial.How do you integrate twitpic api as a buddypress plugin which is a social wordpress MU CMS?<br />
<a href="http://www.buddypress.org" rel="nofollow">http://www.buddypress.org</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://amiworks.co.in/talk/integrating-twitter-api-with-codeigniter/comment-page-1/#comment-4716</link>
		<dc:creator>david</dc:creator>
		<pubDate>Tue, 03 Feb 2009 15:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://amiworks.co.in/talk/?p=252#comment-4716</guid>
		<description>The main thing I was trying to express is the fact that adding values to the class itself makes the class inflexible. 

If you don&#039;t want to change the class you can extend the class with your own using a prefix. This loads the parent class and the extended class into an object with the parent class name.

A quick an dirty extended class

class MY_Twitter extends Twitter
{
    function MY_Twitter($settings)
    {
       parent::twitter();
       $this-&gt;username = $settings[&#039;username&#039;];
       $this-&gt;password = $settings[&#039;password&#039;];
       $this-&gt;useragent = $settings[&#039;useragent&#039;];
    }
}</description>
		<content:encoded><![CDATA[<p>The main thing I was trying to express is the fact that adding values to the class itself makes the class inflexible. </p>
<p>If you don&#8217;t want to change the class you can extend the class with your own using a prefix. This loads the parent class and the extended class into an object with the parent class name.</p>
<p>A quick an dirty extended class</p>
<p>class MY_Twitter extends Twitter<br />
{<br />
    function MY_Twitter($settings)<br />
    {<br />
       parent::twitter();<br />
       $this-&gt;username = $settings['username'];<br />
       $this-&gt;password = $settings['password'];<br />
       $this-&gt;useragent = $settings['useragent'];<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit Kumar Singh</title>
		<link>http://amiworks.co.in/talk/integrating-twitter-api-with-codeigniter/comment-page-1/#comment-4687</link>
		<dc:creator>Amit Kumar Singh</dc:creator>
		<pubDate>Mon, 02 Feb 2009 11:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://amiworks.co.in/talk/?p=252#comment-4687</guid>
		<description>thanks for suggestion david, i did not do any of those things as i did not wanted to change the original class file and my need was very well served.</description>
		<content:encoded><![CDATA[<p>thanks for suggestion david, i did not do any of those things as i did not wanted to change the original class file and my need was very well served.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://amiworks.co.in/talk/integrating-twitter-api-with-codeigniter/comment-page-1/#comment-4686</link>
		<dc:creator>david</dc:creator>
		<pubDate>Mon, 02 Feb 2009 11:01:17 +0000</pubDate>
		<guid isPermaLink="false">http://amiworks.co.in/talk/?p=252#comment-4686</guid>
		<description>Instead of hardcoding the variables in the class add an initialize method that sets the variables for you and then you can use a config file with the same name to load the default values. 
But then you also have to possibility to create other twitter objects.

$this-&gt;load-&gt;library(&#039;Twitter&#039;); // loads class and adds config values
$other_nest = new Twitter($other_config);</description>
		<content:encoded><![CDATA[<p>Instead of hardcoding the variables in the class add an initialize method that sets the variables for you and then you can use a config file with the same name to load the default values.<br />
But then you also have to possibility to create other twitter objects.</p>
<p>$this-&gt;load-&gt;library(&#8216;Twitter&#8217;); // loads class and adds config values<br />
$other_nest = new Twitter($other_config);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

