https://github.com/themattharris/tmhOAuth
↑ ここからダウンロードして tmhOAuth.php をサーバにアップします。
require_once 'tmhOAuth.php'; $twitter = new tmhOAuth( array( 'consumer_key' => 'aaaaa' , 'consumer_secret' => 'bbbbb' , 'token' => 'ccccc' , 'secret' => 'ddddd' , 'curl_ssl_verifypeer' => false , 'timezone' => 'Asia/Tokyo' , ) ); $r = $twitter->request('POST', $twitter->url('1.1/statuses/update'), array( 'status' => 'hoge hoge hoge' ), true, false); // 正常終了なら $r に 200 が返る。 print '<pre>'; print_r($twitter); print '</pre>';
https://dev.twitter.com/docs/api/1.1
その他参考: