forked from bcit-ci/CodeIgniter
-
Notifications
You must be signed in to change notification settings - Fork 26
CodeIgniter Twitter Library
World Wide Web Server edited this page Jul 4, 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:
[code] $this->load->library('twitter'); $this->twitter->auth('someuser','somepass'); $this->twitter->update('My awesome tweet!'); [/code]
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