Class: Dance::User

Inherits:
Client show all
Defined in:
lib/dance/user.rb

Class Method Summary collapse

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(options={})
  post('/user/authenticate', options)
end

.currentObject

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

.facebookObject

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

.favoritesObject

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

.historyObject

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