Class: Whatser::Foursquare

Inherits:
Service show all
Defined in:
lib/whatser/api/foursquare.rb

Instance Attribute Summary

Attributes inherited from Resource

#json

Class Method Summary collapse

Methods inherited from Service

auth_params, connection_querystring, connection_url, #connection_url, disconnection_url, #disconnection_url, key, #key

Methods inherited from Resource

#api_request, api_request, client, convert_data_to_model, from_hash_to_model, #initialize, set

Constructor Details

This class inherits a constructor from Whatser::Resource

Class Method Details

.get_friends(opts = {}) ⇒ Object



6
7
8
# File 'lib/whatser/api/foursquare.rb', line 6

def get_friends(opts={})
  api_request :get, "/oauth/services/foursquare/friends", {:query => opts}, :model => Whatser::User
end