Class: LastFM::Auth
- Inherits:
-
Object
- Object
- LastFM::Auth
- Defined in:
- lib/lastfm/auth.rb
Class Method Summary collapse
-
.get_mobile_session(params) ⇒ Object
Create a web service session for a user.
-
.get_session(params) ⇒ Object
Fetch a session key for a user.
-
.get_token ⇒ Object
Fetch an unathorized request token for an API account.
Class Method Details
.get_mobile_session(params) ⇒ Object
Create a web service session for a user. Used for authenticating a user when the password can be inputted by the user. Only suitable for standalone mobile devices.
11 12 13 |
# File 'lib/lastfm/auth.rb', line 11 def get_mobile_session( params ) LastFM.get( "auth.getMobileSession", params, :secure ) end |
.get_session(params) ⇒ Object
Fetch a session key for a user. The third step in the authentication process.
19 20 21 |
# File 'lib/lastfm/auth.rb', line 19 def get_session( params ) LastFM.get( "auth.getSession", params, :secure ) end |
.get_token ⇒ Object
Fetch an unathorized request token for an API account. This is step 2 of the authentication process for desktop applications.
27 28 29 |
# File 'lib/lastfm/auth.rb', line 27 def get_token LastFM.get( "auth.getToken", {}, :secure ) end |