Sha256: 853628ebf8f7bd3da21abd2bbaaafcf0f1546c21e060fcade5cbbdb35b530173

Contents?: true

Size: 671 Bytes

Versions: 6

Compression:

Stored size: 671 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)
    response = rest_oauth_connect(:get, @@ACCOUNT_URIS[type])
    bless_models(Twitter::RateLimitStatus.unmarshal(response.body))
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
twitter4r-0.7.0 lib/twitter/client/account.rb
twitter4r-0.6.0 lib/twitter/client/account.rb
twitter4r-0.5.3 lib/twitter/client/account.rb
twitter4r-0.5.2 lib/twitter/client/account.rb
twitter4r-0.5.1 lib/twitter/client/account.rb
twitter4r-0.5.0 lib/twitter/client/account.rb