fm.api
fm.api.Request(method, arguments)
Use this class to make a request to the JSON api. As an example we will make a call to the system.echoData method.
Example
var request = new fm.api.Request('system.echoData',{ data : 'hello world' });
request.onResult = function(result) {
alert('Succes!');
};
request.onError = function(result) {
alert('Failure :(');
}
request.invoke();
If onError is not specified, the error is sent to fm.util.log.
developer documentation r21358