This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:sidebar:remoteapi:apiref:reqformat:reqformat [25/05/2017 08:30] stan [Limitations] |
en:sidebar:remoteapi:apiref:reqformat:reqformat [17/09/2024 14:31] (current) sden [Parameters] |
||
---|---|---|---|
Line 2: | Line 2: | ||
====== Request format ====== | ====== Request format ====== | ||
- | All actions are executed only through POST requests. Additional parameters (“params”) should be given in the form of JSON. Response is also returned as JSON. All text parameters, either sent or returned, are supposed to use UTF-8 encoding. | + | All actions are executed only through **POST** requests, via **https** protocol. Additional parameters (“params”) should be given in the form of JSON. Response is also returned as JSON. All text parameters, either sent or returned, are supposed to use UTF-8 encoding. |
\\ :!: [[http://json.org|JSON]] is not supported HEX values, use DEC. | \\ :!: [[http://json.org|JSON]] is not supported HEX values, use DEC. | ||
Request template: | Request template: | ||
<code> | <code> | ||
- | http://{host}/wialon/ajax.html?sid=<text>&svc=<svc>¶ms={<params>} | + | https://{host}/wialon/ajax.html?sid=<text>&svc=<svc>¶ms={<params>} |
</code> | </code> | ||
//:!: Attention!// it is obligatory to point **Content-Type:application/x-www-form-urlencoded** in request header. | //:!: Attention!// it is obligatory to point **Content-Type:application/x-www-form-urlencoded** in request header. | ||
+ | //:!:// Please make sure, that you use HTTPS **protocol**. | ||
===== Parameters ===== | ===== Parameters ===== | ||
^ Name ^ Description ^ | ^ Name ^ Description ^ | ||
Line 18: | Line 19: | ||
| //params// | parameters for command execution | | | //params// | parameters for command execution | | ||
- | //:!: Attention!// In the following chapters, the values of only two parameters will be described. These parameters are **svc** and **params**. Session ID (**sid**) is a mandatory parameter needed to execute all requests (except [[../core/login|login]] and some requests from the chapter [[../requests/requests]]). | + | //:!: Attention!// In the following chapters, the values of only two parameters will be described. These parameters are **svc** and **params**. Session ID (**sid**) is a mandatory parameter needed to execute all requests (except [[../token/login|login]] and some requests from the chapter [[../requests/requests]]). |
===== Limitations ===== | ===== Limitations ===== |
|