Class: BackTyper::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/backtyper/client.rb

Direct Known Subclasses

Comments, Tweets

Class Method Summary collapse

Class Method Details

.authenticate(key) ⇒ Object



9
10
11
# File 'lib/backtyper/client.rb', line 9

def self.authenticate(key)
  default_params :key => key
end

.rate_limitObject

Check the rate limit status for a given key. Stats are rolled up hourly.



16
17
18
19
# File 'lib/backtyper/client.rb', line 16

def self.rate_limit
  response = get('/rate_limit_status.json')
  handle_response(response)
end