2月 132016
 

シリアライズ可能なcURLのラッパークラス[参照]:http://qiita.com/mpyw/items/c65fb4ec4cef80909a47

使ってみたらすばらしいラッパークラスです。

これもすぐにできなかったのでめも。

全部同じディレクトリにファイルをつくったと過程。

  1. class cURLをcURL.phpとして保存。
  2. class NicoNicoをNicoNico.phpとして、保存。NicoNico.phpにcURL.phpをrequireする。
    require_once("cURL.php");
  3. index.phpを作り、その中で実装する。
    require_once("NicoNico.php");
    $nico = new NicoNico('aaaaa@bbbbb.cc.jp', 'xxxxxxx');
    var_dump($nico->getHistory());

これでOK!

視聴履歴が長期間ないと「履歴取得に失敗しました」エラーが表示されるので、その場合は、ためしに視聴する。

よく読まれている記事

この記事を読んだ人は次の記事も読んでいます:

このエントリーをはてなブックマークに追加
はてなブックマーク - シリアライズ可能なcURLのラッパークラスをつかってみた
[`google_buzz` not found]
[`yahoo` not found]
[`livedoor` not found]
[`friendfeed` not found]
[`tweetmeme` not found]
[`grow` not found]
[`evernote` not found]

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)