de.umass.lastfm
public class Authenticator extends Object
Session
Modifier and Type | Method and Description |
---|---|
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.
|
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 secretSession
public static String getToken(String apiKey)
apiKey
- A last.fm API key.