-
Notifications
You must be signed in to change notification settings - Fork 7.6k
CodeIgniter Twitter Library
Derek Jones edited this page Jul 5, 2012
·
5 revisions
After having a bit of a look online, I found that the only CodeIgniter library for Twitter works by looking at RSS feeds (http://www.haughin.com/code/twitter/).
So, CodeIgniter-Twitter was born. It’s a library which provides simple access to the Twitter API, allowing you to do things like:
- Post a new tweet
- Access/send direct messages
- Follow new people
- Update a user’s profile
etc…
Usage is as follows:
$this->load->library('twitter');
$this->twitter->auth('someuser','somepass');
$this->twitter->update('My awesome tweet!');
As long as you call the auth() method before anything else in the class, everything should work fine.
You can download the library by visiting the project’s page on Github here: http://github.com/simonmaddox/codeigniter-twitter/tree/master