|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.umass.lastfm.Authenticator
public class Authenticator
Provides bindings for the authentication methods of the last.fm API. See http://www.last.fm/api/authentication for authentication methods.
Session| Method Summary | |
|---|---|
static Session |
getMobileSession(String username,
String password,
String apiKey,
String secret)
Create a web service session for a user. |
static Session |
getSession(String token,
String apiKey,
String secret)
Fetch a session key for a user. |
static String |
getToken(String apiKey)
Fetch an unathorized request token for an API account. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Session getMobileSession(String username,
String password,
String apiKey,
String secret)
username - last.fm usernamepassword - last.fm password in cleartext or 32-char md5 stringapiKey - The API keysecret - Your last.fm API secret
Sessionpublic static String getToken(String apiKey)
apiKey - A last.fm API key.
public static Session getSession(String token,
String apiKey,
String secret)
token - A token returned by getToken(String)apiKey - A last.fm API keysecret - Your last.fm API secret
Session
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||