WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

Category:Libraries

Clone this wiki locally