Get a Caller instance.
Redefined in descendants as:
Call an API method.
SimpleXMLElement
call
(string $method, [ $params = array()], [string $requestMethod = 'GET'])
-
string
$method: API method to call. (Required)
-
array
$params: Request parameters to send. (Optional)
-
string
$requestMethod: Request-method for calling (defaults to 'GET'). (Optional)
Get the last.fm API key which is used.
string
getApiKey
()
Get the last.fm API secret which is used.
string
getApiSecret
()
Send a query using a specified request-method.
SimpleXMLElement
internalCall
( $params, [string $requestMethod = 'GET'], string $query)
-
string
$query: Query to send. (Required)
-
string
$requestMethod: Request-method for calling (defaults to 'GET'). (Optional)
-
$params
Redefined in descendants as:
Set the last.fm API key to be used.
void
setApiKey
(string $apiKey)
-
string
$apiKey: A last.fm API key. (Required)
Set the last.fm API secret to be used.
void
setApiSecret
(string $apiSecret)
-
string
$apiSecret: A last.fm API secret. (Required)
Sets the active Cache (null to disable caching).
void
setCache
(
Cache $cache)
-
Cache
$cache: A Cache object. (Required)
Call an API method which needs to be signed.
SimpleXMLElement
signedCall
(
string $method, [
$params =
array()], [
Session $session =
null], [
string $requestMethod =
'GET'])
-
string
$method: API method to call. (Required)
-
array
$params: Request parameters to send. (Optional)
-
Session
$session: A session obtained by getSession or getMobileSession. (Optional)
-
string
$requestMethod: Request-method for calling (defaults to 'GET'). (Optional)