sbILastFmWebServices Interface Reference

import"sbILastFmWebServices.idl";

Inheritance diagram for sbILastFmWebServices:
[legend]
Collaboration diagram for sbILastFmWebServices:
[legend]

Public Member Functions

void apiCall (in string aMethod, in nsIPropertyBag aArguments, in sbILastFmWebServicesResponse aCallback)
 ApiCall - Make an API call against the new Last.fm API See http://www.last.fm/api/rest for the list of API calls that are available. More...
 
void apiCall (in string aMethod, in nsIPropertyBag aArguments, in sbILastFmWebServicesResponse aCallback)
 

Public Attributes

readonly attribute string username
 
readonly attribute boolean loggedIn
 

Detailed Description

Definition at line 49 of file sbILastFmWebServices.idl.

Member Function Documentation

void sbILastFmWebServices::apiCall ( in string  aMethod,
in nsIPropertyBag  aArguments,
in sbILastFmWebServicesResponse  aCallback 
)
void sbILastFmWebServices::apiCall ( in string  aMethod,
in nsIPropertyBag  aArguments,
in sbILastFmWebServicesResponse  aCallback 
)

ApiCall - Make an API call against the new Last.fm API See http://www.last.fm/api/rest for the list of API calls that are available.

Parameters
aMethodThe method name.
aArgumentsA property bag of arguments using key,value. This can also be a simple hash object: var args = { name: value, name2: value2 };
aCallbackThe callback to inform when complete, this can either be the sbILastFmWebServicesResponse or a function that resembles the responseReceived function in sbILastFmWebServicesResponse.

Authentication, API keys and request signing will be taken care of automatically. So there is no need to include them in the arguments. The values in the aArguments nsIPropertyBag must be strings as they will be passed as paramaters in the URI or POST call. Currently this does not work for write calls as we do not log in.

Member Data Documentation

readonly attribute boolean sbILastFmWebServices::loggedIn

Definition at line 55 of file sbILastFmWebServices.idl.

readonly attribute string sbILastFmWebServices::username

Definition at line 52 of file sbILastFmWebServices.idl.


The documentation for this interface was generated from the following file: