Part of the EllisLab Network
x
 
Create New Page
 View Previous Changes    ( Last updated by totels )

CodeIgniter-Twitter Library

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

Category:Libraries

Categories: