Twitterの認証方式について Twitterの認証方式にはOAuthとBasic認証の二通りの仕組みがあります。 Twitter API Wiki / Authentication Basic認証はお手軽なので、世に存在するTwitter APIを利用する一般的なクライアントは、大抵がこちらの方法を使っているのではないかと思います。 ですが、実はこのBasic認証はセキュリティ上の理由から、将来的に非推奨になることが予告されています。 Twitter API Wiki / OAuth FAQ 既にTwitter API Wikiでは「今後作成するクライアントはOAuthを利用することを強く推奨する」と表明されており、それに応じてOAuthを使うクライアントも増えてきています。 …が、現状Basic認証を利用しているクライアントが既に大量に存在していることを考えると、今日明日でBasic
twitter4rでtwitter検索するのに思ったより苦戦したのでメモを残す twitter4rはruby用のtwitterライブラリ 2009-09-16時点 $ gem list --local | grep twitter twitter4r (0.3.1) Twitter API 仕様書はtsupoさん訳のもの。第31版。 twitter検索の大まかな使い方 twitter = Twitter::Client.new iterator = twitter.search(:q => "四時 OR 4時 OR 4時", :lang => 'ja') iterator.each do |tweet| p tweet.text end これで検索対象発言が取り出せる。無指定だと15件。 :lang => jaが日本語限定。「 OR 」でOR検索ができる。 試してないけ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く