Calling a Function

Once you authenticate, you are ready to use the API. To call a function, you should specify at least the following parameters:

function

The name of the function.

token

The authentication token that you received on Authentication.   

data-format

One of xml or json. If nothing is specified, it defaults to xml. This specifies format in which data will be sent and received.

In addition, you should specify the parameters required by the function you are calling. See the function reference for more details. On success, the X-Success HTTP header has the value 1 while in case of failure it has the value 0. An error message is present in the X-Error-Message header.

All parameter names and values are case sensitive. Token,TOKEN and token are treated differently.

For examples, refer here.

For PHP, refer the sample file in the zip file here.