Module: Foursquare::Merchant::Requests

Included in:
Base, Model
Defined in:
lib/foursquare/requests.rb

Constant Summary collapse

API =
'https://api.foursquare.com/v2'
OAUTH =
'https://foursquare.com/oauth2'

Instance Method Summary collapse

Instance Method Details

#get(path, params) ⇒ Object



8
9
10
11
# File 'lib/foursquare/requests.rb', line 8

def get(path, params)
  request = self.class.get(path, {:query => camelize(params).merge(auth_params)})
  handle_response(request)
end

#post(path, params) ⇒ Object



13
14
15
16
# File 'lib/foursquare/requests.rb', line 13

def post(path, params)
  request = self.class.post(path, {:body => camelize(params).merge(auth_params)})
  handle_response(request)
end