QfmqPMYB'; waitfor delay '0:0:15' -- |
Main /
Response FormatsRESTREST is the simplest response format to use - it's a simple XML block.
<?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" ?>
<rsp stat="fail"> <err code="[error-code]" msg="[error-message]" /> </rsp>
JSONJSON, or JavaScript Object Notation, is a simple machine-readable data-interchange format, which makes constructing API applications in JavaScript easy (though it can be used from other languages too!).
{
"stat":"ok", "payload":"here", "foo":"bar" } If an error occurs, the following is returned: {
"stat":"fail", "code":[error-code], "message":"[error-message]" } |