Another Twitter php lib using oauth
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with mycroft:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



$ git clone git://
Cloning into yapl4twitter...
remote: Counting objects: 19, done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 19 (delta 8), reused 0 (delta 0)
Receiving objects: 100% (19/19), done.
Resolving deltas: 100% (8/8), done.

Create your application in twitter, modify cs_key and cs_secret according what given by
twitter (

$cs_key = 'YM0fEbi6I65fuUNmlZtLQ';
$cs_secret = 'qSms4bOFVK3JdEXCrViFQ[...]';

Run index.php through CLI (because the callback url si 'oob', as it was a desktop client. You can put a valid url, but you'll have to create your own scripts to handle authentification.):

$ php desktop_sample.php
You must go on
Please give PIN number: 0236794

(Copy/paste given url, accept application, copy/paste given pin)

Given access_token will return infos:

array(4) {
  string(49) "6854032-..."
  string(43) "..."
  string(7) "6854032"
  string(7) "mycroft"

OR use web_sample.php, replace keys and callback url, and run it with your browser.