Songbird / Development / Songbird Add-Ons API Documentation

sbILastFmWebServices Interface Reference

List of all members.

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.

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 
)

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:
aMethod The method name.
aArguments A property bag of arguments using key,value. This can also be a simple hash object: var args = { name: value, name2: value2 };
aCallback The 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.


The documentation for this interface was generated from the following file:
Generated on Tue Mar 10 14:28:59 2009 for Songbird by  doxygen 1.5.2