Source for file Auth.php
Documentation is available at Auth.php
/** Authentication methods.
* @package php-lastfm-api
* @author Felix Bruns <felixbruns@web.de>
/** Returns a last.fm API signature for the given request parameters.
* @param array $params Request parameters.
* @param string $apiSecret Last.fm API secret.
* @return string Last.fm API signature.
foreach($params as $name =>
$value){
$string .=
$name .
$value;
/** 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. See the authentication how-to for more.
* @param string $username The last.fm username. (Required)
* @param string $password The last.fm password. (Required)
* @return Session A Session object.
'authToken' =>
md5($username .
md5($password))
/** Returns a session using an authorized token.
* @param string $token A 32-character ASCII hexadecimal MD5 hash returned by step 1 of the authentication process (following the granting of permissions to the application by the user). (Required)
* @return Session A Session object.
/** Fetch an unauthorized request token for an API account. This is step 2 of the authentication process for desktop applications. Web applications do not need to use this service.
* @return string A 32-character ASCII hexadecimal MD5 hash.
/** Used by our flash embeds (on trusted domains) to use a site session cookie to seed a ws session without requiring a password. Uses the site cookie so must be accessed over a *.last.fm domain.
* @return Session A Session object.
Documentation generated on Mon, 22 Dec 2008 16:57:31 +0100 by phpDocumentor 1.4.1