Response Formats

JSON

August 12, 2014 |

To return an API response in JSON format, send a parameter “format” in the request with a value of “json”. If you are using the JavaScript method JSONP you can also send the parameter “callback” in the request with a value of the name you want the callback function to be. A method call returns…

XML

August 12, 2014 |

To return the response in XML format, send a parameter “format” in the request with a value of “xml”. When using the HTTP request method, the response defaults to XML. A method call returns this: <?xml version=”1.0″ encoding=”utf-8″ ?> <rsp stat=”ok”> [xml-payload-here] </rsp> If an error occurs, the following is returned: <?xml version=”1.0″ encoding=”utf-8″ ?>…