Flickr APIのインタフェースとしては, REST / XML-RPC / SOAP の3種類が用意されています。 通常は,実装が容易な REST を利用することが多いようです。 REST リクエスト時のレスポンス(APIから返却される結果データ)は, RSP 形式という独自の XML フォーマットで出力されます (Plain Old XML)。 XML以外にも,JSON形式(JavaScript Object Notation), JSONP形式(JSON with Padding), PHP serialize形式での出力も可能です。 今回は,JavaScriptから処理しやすいJSONPを利用することにします。 Flickr APIの利用(ライセンス認証用API Keyの取得)には, 米国Yahoo!の会員登録が必要です。 英語のメッセージなので少し面倒ですが, [Sign U
今更,rubyのflickr APIメモ. インストール ruby-gemsでインストール gem install flickr gems のflickr.rb (/usr/lib/ruby/gems/1.8/gems/flickr-1.0.0/flickr.rb) 中で,api_keyを,自分の物に書き換える. コンストラクタの引数にapiを与えても反応無し...なぜだ.ソースを見る限り,引数で良さそうなのに. 使い方 require 'flickr' flickr = Flickr.new # 写真の取り方,その1 user = flickr.users('yourname') photos = user.tag('tag') //yournameのtagの写真を取ってくる.Flickr::PhotoクラスのArray # 写真の取り方,その2 photos = flickr.phot
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く