Yii 1.1: twitter-full-featured-extension

Twitter API Extension that supports all Twitter API Calls.

This extension allows you to perform Twitter API Calls to retrieve different type of data, With or without authentication, Using different formats for the returned data, that supports caching the returned data, parametrization requests, and user friendly errors.

For full documentation and features please visit the Wiki



Here are a few examples on using the Twitter extension.

  • First make sure you've added the extension under the extensions directory located at: protected/extensions.
  • Add the following array code to the components array in the application configuration file:
'twitter' => array(
                        'class' => 'application.extensions.twitter.VGTwitter', // path to the twitter extension
                        'username' => 'LOGINNAME', // login name, this is not required all the time but most api calls need this set
                        'apiCallType' => 'statuses/home_timeline', // the api call to perform, the default is set to statuses/user_timeline
                        'password' => 'PASSWORD', // password for the twitter account
                        'authenticate' => true, // if the twitter api call needs authentication then this must be set to true since by default it is set to false
                        'format' => 'rss', // default is xml so we will configure this as rss for this example
                        'postParams' => array( 'count' => 2 ) // we want only the first two results, meaning tweets

Then all we have to do in our code is to run the following:

$returned = Yii::app()->twitter->get()->getResponseData();

Now the $returned is an array/object/json depends on the format you chose to receive, that can be manipulated.

Change Log

April 1, 2010

  • Initial release.

Total 3 comments

#100 report it
Vince. at 2010/09/16 06:19am
Probably will write a new class that handles the new api

Probably will write a new class that handles the new api

#116 report it
Sasha at 2010/09/09 09:21am
auth was changes

Are you planin to change auth way ?

#608 report it
DarkNSF at 2010/04/09 10:54am
nicely done sir!

i love it

Leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: Vince.
  • Category: Web Service
  • Votes: +7 / -1
  • Downloaded: 1,644 times
  • Created on: Apr 1, 2010
  • Last updated: never