Professional Freelance Web Developer
CodeIgniter Activist, Caffeine Junkie

Elliot Haughin

Twitter API Library For CodeIgniter Released

3rd March 2009

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:

  1. CodeIgniter Vimeo API Library Released
  2. CodeIgniter Twitter Library
  3. Twitter CodeIgniter Library gets oAuth Love!
  4. New CodeIgniter Library: Facebook Connect

  • Excellent! You are a gift to the CodeIgniter community Elliot.
  • Christian Andrade
    You have any method to publish an image in twitter like: http://yfrog.com

    I'm going to try your library, thanks for it.
  • I've used this in a few of my projects already. Works wonderfully!

    There is one bug that I found. In the version I have, there is whitespace before the opening <?php in the library class which causes premature output in the browser. Other than that, it's great!
  • Thanks for posting this. Its going to be a big help with my next project
  • Great stuff Elliott. I wonder how it compares to Simon's library:
    http://github.com/simonmaddox/codeigniter-twitt...

    I'm currently using that one, but will try yours out as well.

    Thx!
  • nice. may be using this soon
  • Totally awesome. Guaranteed to use this very soon. I'll drop a line when I have something together.
  • you're awesome elliot!
blog comments powered by Disqus

Boring Stuff

Design © copyright Elliot Haughin 2009

Content published here are copyright their respective owners.

You cannot copy content from this site, either in English or translated to another language.

Keep Subscribed

Theres lots of ways for you to keep up with me on the web.

Please Note

Information given out on this blog should only be used as a guideline. I hold no liability for any code I write.

Always consult a professional before acting on this guidance.