JSON Format

JSON, or JavaScript Object Notation, is a simple machine-readable data-interchange format, which makes constructing API applications in JavaScript easy and it can be used from other languages too.
For more information about JSON, visit http://www.json.org

The JSON Server Endpoint URL is: http://service.feng-gui.com/json/api.ashx

You can try all the API methods via a web browser, at http://service.feng-gui.com/json/api.ashx?test

Request Format

To send a request , for example, to ImageAttention, send a request like this:
{ "InputImage" : 
"http://service.feng-gui.com/users/customer/files/images/59358272-69df-4b3b-9979-1b82da3cf968.png",
"ViewType" : 0, "ViewDistance" : 0, "analysisOptions" : 0, "outputOptions" : 0}

Response Format

A request call to the method returns the response:
{"serviceVersion":" + FENG_GUI_SERVICE_VERSION + ","version":" + FENG_GUI_HEATMAP_VERSION + ",
"inputImage":"http://service.feng-gui.com/users/customer/files/images/59358272-69df-4b3b-9979-1b82da3cf968.png",
"outputImage":"http://service.feng-gui.com/users/customer/files/heatmaps/49057174-c699-4282-8f63-0be5b8d2453a.png",
"outputAttentionImage":"http://service.feng-gui.com/users/customer/files/temp/49057174-c699-4282-8f63-0be5b8d2453a.png",
"hotspots":[{"x":378,"y":168},{"x":251,"y":184},{"x":562,"y":385},
{"x":60,"y":373},{"x":330,"y":182},{"x":483,"y":366},{"x":392,"y":120},
{"x":109,"y":171},{"x":105,"y":395},{"x":-1,"y":-1}]}

Error Response Format

If an error occurs, the following response example is returned:
{"name":"JSONRPCError","message":"error description.","errors":[{"name":"JsonRpcException","message":"error description."}]}

 

© 2006-2010 Feng-GUI - Feng Shui for graphic user interfaces.™
Terms of Service - Privacy Policy - Service Level Agreement