Class: Crown::BackType

Inherits:
Object
  • Object
show all
Defined in:
lib/crown/backtype.rb,
lib/crown/backtype/counter.rb

Defined Under Namespace

Classes: URICounter

Instance Method Summary collapse

Instance Method Details

#count(uri, options = {}) ⇒ Object

------------------------------------------------------------------- #

count

BackType (BackTweets) の API を介して,指定した URL への ツイート数を取得する.尚,BackType の API を使用する際には, API key を求められるので options に { :api_key = "your api key" } と言うパラメータを指定する必要がある("your api key" の部分は, BackType で取得した API key).

------------------------------------------------------------------- #



64
65
66
# File 'lib/crown/backtype.rb', line 64

def count(uri, options = {})
    return Crown::BackType::URICounter.new.count(uri, options)
end