Class: Dance::User
Class Method Summary collapse
-
.authenticate(options = {}) ⇒ Object
Authenticates a user based on a Facebook token and the user’s ID.
-
.current ⇒ Object
Returns information on the authenticated user.
-
.facebook ⇒ Object
Returns the Facebook information of the authenticated user.
-
.favorites ⇒ Object
Returns the favorites of the authenticated user.
-
.history ⇒ Object
Returns the history of the authenticated user.
Methods inherited from Client
#artists, #genres, #initialize, #tracks, #users
Constructor Details
This class inherits a constructor from Dance::Client
Class Method Details
.authenticate(options = {}) ⇒ Object
Authenticates a user based on a Facebook token and the user’s ID. POST /user/authenticate
6 7 8 |
# File 'lib/dance/user.rb', line 6 def self.authenticate(={}) post('/user/authenticate', ) end |
.current ⇒ Object
Returns information on the authenticated user. GET /user/current
12 13 14 |
# File 'lib/dance/user.rb', line 12 def self.current get('/user/current') end |
.facebook ⇒ Object
Returns the Facebook information of the authenticated user. GET /user/current/facebook
18 19 20 |
# File 'lib/dance/user.rb', line 18 def self.facebook get('/user/current/facebook') end |
.favorites ⇒ Object
Returns the favorites of the authenticated user. GET /user/current/favorites
24 25 26 |
# File 'lib/dance/user.rb', line 24 def self.favorites get('/user/current/favorites') end |
.history ⇒ Object
Returns the history of the authenticated user. GET /user/current/history
30 31 32 |
# File 'lib/dance/user.rb', line 30 def self.history get('/user/current/history') end |