Class: Lastfm::Auth

Inherits:
MethodCategory show all
Defined in:
lib/lastfm/method_category/auth.rb

Instance Method Summary collapse

Methods inherited from MethodCategory

#initialize, #request, #request_for_authentication, #request_with_authentication, #write_request

Constructor Details

This class inherits a constructor from Lastfm::MethodCategory

Instance Method Details

#get_session(token) ⇒ Object



7
8
9
# File 'lib/lastfm/method_category/auth.rb', line 7

def get_session(token)
  request_for_authentication('getSession', { :token => token })['session']['key']
end

#get_tokenObject



3
4
5
# File 'lib/lastfm/method_category/auth.rb', line 3

def get_token
  request_for_authentication('getToken')['token']
end