RestExtras.LastfmProxy¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The API key |
||
r/w/co |
The API key secret |
||
r/w |
The session key |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class RestExtras.LastfmProxy(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod is_successful(root)¶
- Parameters:
root (
Rest.XmlNode
) – The root node of a parsed Lastfm response- Raises:
- Returns:
- Return type:
Examines the Lastfm response and if it not a successful reply, set error and return
False
.
- classmethod new(api_key, secret)¶
- Parameters:
- Return type:
- classmethod new_with_session(api_key, secret, session_key)¶
- Parameters:
- Return type:
- get_api_key()¶
- Returns:
the API key. This string is owned by
RestExtras.LastfmProxy
and should not be freed.- Return type:
Get the API key.
- get_secret()¶
- Returns:
the secret. This string is owned by
RestExtras.LastfmProxy
and should not be freed.- Return type:
Get the secret for authentication.
- get_session_key()¶
- Returns:
the session key, or
None
if there is no session key yet. This string is owned byRestExtras.LastfmProxy
and should not be freed.- Return type:
Get the current session key.
Property Details¶
- RestExtras.LastfmProxy.props.api_key¶
- Name:
api-key
- Type:
- Default Value:
- Flags:
The API key
- RestExtras.LastfmProxy.props.secret¶
- Name:
secret
- Type:
- Default Value:
- Flags:
The API key secret