Twitter is quickly becoming one of the fastest communication networks around. So why should we leave our beautiful CodeIgniter Applications out of such a great think?
Well, now we don’t have to! Here it is, a new, shiny version of the Twitter CodeIgniter Library.
Previously, the library was only able to parse someone’s Tweets via RSS. However! Fear not! For I have built a full-blown Twitter API solution for you!
Requirements: curl, json_decode
So, this is how it’s installed.
Drag and drop Twitter.php and Connection.php into your libraries. Done.
Now time to use it:
$this->load->library('twitter'); $this->twitter->auth('username', 'password'); $this->twitter->call('statuses', 'update', array('status' => 'Thanks to @elliothaughin for this CodeIgniter Twitter API Library!'));
That’s it, you’re done!
For plenty more examples of how it’s used, and to download head over to the code page now:
CodeIgniter Twitter API Library
Related posts: