XML 格式
<?xml version="1.0" encoding="UTF-8"?> <API locale="en" version="1.0"> <user_key>B1263980-9435-4305-A42B-D783F9AAD44B</user_key> <response> <result> <statuscode>200</statuscode> <status>Success</status> <message>Successfully Added</message> <created-date>Mar 22, 2013 10:58 AM</created-date> <records failed="0" success="1" total="1"> <success> <ci id="610">CART</ci> </success> </result> </response> </API>
JSON 格式
{ "API":{ "locale":"en", "response":{ "operation":{ "result":{ "created-date":"May 8, 2013 04:36 PM", "records":{ "total":"1", "failed":[ "1", { "ci":{ "error":"Workstation [sdp-w2k3-12] is already exists.", "name":"sdp-w2k3-12" } } ], "success":"0" }, "message":"Unable to add the CI(s), please refer the error message.", "status":"Failed", "statuscode":"3016" }, "name":"add" } }, "version":"1.0" } }