Sha256: d95eedee8f3876f808674c2b2ca1e8efd4a01989beb9ac2718dfebeb39e60518
Contents?: true
Size: 793 Bytes
Versions: 3
Compression:
Stored size: 793 Bytes
Contents
class Twitter::Client @@ACCOUNT_URIS = { :rate_limit_status => '/account/rate_limit_status', } # Provides access to the Twitter rate limit status API. # # You can find out information about your account status. Currently the only # supported type of account status is the <tt>:rate_limit_status</tt> which # returns a <tt>Twitter::RateLimitStatus</tt> object. # # Example: # account_status = client.account_info # puts account_status.remaining_hits def account_info(type = :rate_limit_status) connection = create_http_connection connection.start do |connection| response = http_connect do |conn| create_http_get_request("#{@@ACCOUNT_URIS[type]}.json") end bless_models(Twitter::RateLimitStatus.unmarshal(response.body)) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
dambalah-twitter4r-0.3.1 | lib/twitter/client/account.rb |
dambalah-twitter4r-0.3.2 | lib/twitter/client/account.rb |
mbbx6spp-twitter4r-0.3.1 | lib/twitter/client/account.rb |