ドットインストール代表のライフハックブログ
Complete oAuth script for Twitter and LinkedIn using PECL oAuth Extension The Storyteller PECLのoAuthエクステンションを使ってPHPでTwitterにログインするサンプル例が公開されています。 PECLにoAuthのエクステンションが公開されているようで、それを使ってTwitterやLinkedinにログインするサンプルプログラムです。 Yahoo!Japan も oAuth に対応していて、サービスに大手サイトのログインを使いたい場合に使えますね。 拡張を使って簡単にできるのはいいのですが、それでも結構サンプルを組むのは大変のようで、このサンプルプログラムを参考に作ればoAuth部分は比較的速攻で作ってしまえそう。 エクステンションなのでPEARなどに比べて速度も出るので、PEARを使ってい
この記事以降 Twitter API の仕様が変わっており、このままでは正しく機能しない場合があると思います。近いうちに今のやり方を書くので、それまで参考程度にご覧ください。 Twitter API の OAuth でひととおりやってみた。 忘れないようにメモ。 大雑把な流れ Twitter にアプリケーションを登録する。 Consumer Key と Consumer secret を取得する。 リクエストトークンを取得する。 認証用 URL を取得する。 ユーザーから承認を受ける(bot の場合は自分でやる)。 アクセストークンを取得する。 API にアクセスする。 以下、やった作業の手順です。 事前準備 HTTP_OAuth を使えるようにする OAuth の通信部分そのものは PEAR の HTTP_OAuth を使うことにしたので これをインストールする。 一番めんどくさい部分を
PHPからTwitterを簡単に操作できるPEARパッケージ「Services_Twitter」がアップデート 2010年01月10日- Services_Twitter :: 0.5.0 PHPからTwitterを簡単に操作できるPEARパッケージ「Services_Twitter」がアップデートしたみたいです。 ChangeLogによると次のようなAPIに追加で対応したみたいです。 + added statuses/home_timeline + added statuses/retweeted_by_me + added statuses/retweeted_to_me + added statuses/retweets_of_me + added statuses/retweet + added statuses/retweets + added report_spam metho
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く