Post
Request:
{ "action": "createReport", "token": "039b3b72-c83a-4626-9a66-9302d81000ff", "isDebug": 1, "requestData": { "ConfigKey": "D68F47DD-90A8-4C44-8A33-69DC64E596F8", "ItemType": "CleanWater" }}View code
Response:
{ "data": "8ef75fb5-e946-4542-ab8b-02ae0527fc06", "msg": "success", "responseCode": { "msgCode": 200, "msgDetail": "OK" }, "serverTime": "2016-05-16 00:09:32", "success": true}View code
Request 2:
{ "action": "createReport", "token": "039b3b72-c83a-4626-9a66-9302d81000ff", "isDebug": 1, "requestData": { "ConfigKey": "D68F47DD-90A8-4C44-8A33-69DC64E596F8", "ItemType": "FloorHeating_Water" }}View code
Response2:
{ "data": null, "msg": "sorry, this function still in dev.", "responseCode": { "msgCode": 500, "msgDetail": "Crash" }, "serverTime": "2016-05-16 00:15:54", "success": false}View code
Request 3:
{ "action": "createReport", "token": "039b3b72-c83a-4626-9a66-9302d81000ff", "isDebug": 1, "requestData": { "ConfigKey": "D68F47DD-90A8-4C44-8A33-69DC64E596F8", "ItemType": 4 }}View code
Response 3:
{ "data": "e94b3a77-034b-4154-86c5-a9530169f61c", "msg": "success", "responseCode": { "msgCode": 200, "msgDetail": "OK" }, "serverTime": "2016-05-16 00:20:52", "success": true}View code
Note:
1) if the operation is successful, report key is returned.
(2) itemtype, which is an enumeration value. Passing parameters can receive both int-type values and fully-matched strings.
Details: http://www.cnblogs.com/jwiter/p/5454253.html;
(The end ).
Createreport generate quotation