Содержание

API interaction format

WaspAce API works in JSON format at http://api.waspace.net

Interaction codes

Format of POST requests processing

Request

Request body should contain the following string with JSON-object:

v={
 "Action":<ACTION_CODE>,
 "Data":{
  <ACTION_DATA>
 }
}

Where

Response

In the body of the server response the string will be contained:

<head><script>window.name="<RESPONSE_JSON_OBJECT>"</script></head>

Format of GET requests processing

Request

The request string should look like this:

http://api.waspace.net/<ACTION_CODE>/{<ACTION_DATA>}

Where

Response

In the body of the server response the string will be contained:

<RESPONSE_JSON_OBJECT>

Where

Types of server responses

Request is successfully done
{
 "Status": <SR_SUCCESS>,
 "Data": {
  <RESPONSE_DATA>
 }
}

Где

Request failed, general error was occured.
{
 "Status":<SR_GENERAL_ERROR>,
 "Error":<GENERAL_ERROR_CODE>
}

Where

Request failed, an error occurred on request
{
 "Status":<SR_QUERY_ERROR>,
 "Error":<QUERY_ERROR_CODE>
}

Where

Additional information