あっきぃ日誌

鉄道ブログのような技術系ブログのようななにか

2010-04-25から1日間の記事一覧

PHPでbit.lyのAPIをたたく

このエントリを書いてる時点で最新のバージョン3.0準拠にしてます。 ApiDocumentation - bitly-api - bitly REST API method documentation - API Libraries and Documentation for bitly - Google Project Hosting

HTTP/Request2でハイクとかTwitterに投稿するサンプル

, HTTP_Request2::METHOD_POST); $req->setAuth(<ID>, <パスワード>, HTTP_Request2::AUTH_BASIC); $data = array( 'status' => 'テスト。', 'source' => 'API-Test' ); $req->addPostParameter($data); $response = $req->send(); echo '<pre>'.htmlspecia…</pre></id>