Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
en:protocole_json [2017/03/20 11:16] mifrey [Testing] |
en:protocole_json [2017/03/20 11:23] mifrey HTTP GET |
||
---|---|---|---|
Line 16: | Line 16: | ||
Data in JSON format are placed in the file // | Data in JSON format are placed in the file // | ||
- | wget --no-check-certificate --post-file query.json --output-document result.json https://ip_address/api.php | + | wget --no-check-certificate --post-file query.json --output-document result.json https://calaos_server_ip/api.php |
+ | |||
+ | ==== In url with HTTP GET ==== | ||
+ | |||
+ | The requests must be made with HTTP POST with Calaos v2. Calaos v3 also supports HTTP GET and it is therefore possible to send a request directly in the url. | ||
+ | |||
+ | Examples: | ||
+ | * Get the config: https:// | ||
+ | * Get a picture from a camera: https:// | ||
+ | * Set an output: https:// | ||
+ | * Set an intern variable: https:// | ||
+ | |||
+ | That allows an external system that only supports HTTP GET to easily communicate to Calaos. | ||
==== Use the API with other languages ==== | ==== Use the API with other languages ==== |