This is just a small announcement of the first release of KTwitter; a Twitter library for Kohana.
I know there is an excellent Twitter library already but it makes use of the old username/password method – which Twitter now discourages. KTwitter makes full use of the newer Oauth method. It is fairly simple to install and is currently very basic. It is designed as a hardcore developers library to make working with Twitter a lot easier
I wrote this module mostly for a website I am working on that requires Twitter to be used as the login – as such the library for the most part consists of the following:
- An API to log in users with Oauth and store their API keys in the Database
- Some utility functions to help make Twitter REST API calls easier
- A few “example” wrappers on top of Twitter REST API (eg: Twitter::getStatus, Twitter::setStatus)
Be warned there is currently no “deep and meaningful” interface to the Twitter API – you will be able to interact with Twitter (as the Utility functions lets you build Oauth calls correctly) but you will need ot figure out the correct API paths (and so forth) yourself.
As the library matures more API calls will be added to it.
Note there are currently no API docs – you will have to work it out for yourselves for a few days.