access_via_api
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
access_via_api [2021/07/02 12:35] – [Alert list] emozolyak | access_via_api [2023/03/02 10:53] (current) – [API usage examples] emozolyak | ||
---|---|---|---|
Line 29: | Line 29: | ||
<WRAP center round important 60%> | <WRAP center round important 60%> | ||
- | Note that, if you are using another WebHMI as client (via cURL Lua's library), the following line should be removed | + | Note that, if you are using another WebHMI as client (via [[Lua_API|cURL Lua]]'s library), the following line should be removed |
Accept-Encoding: | Accept-Encoding: | ||
</ | </ | ||
Line 1253: | Line 1253: | ||
To get a list of all alerts, you must perform a GET request on the URL like this: http:// | To get a list of all alerts, you must perform a GET request on the URL like this: http:// | ||
- | To obtain information about a particular alert, you must perform a following GET request on a URL ' | + | To obtain information about a particular alert, you must perform a following GET request on a URL ' |
In the headers, it is necessary to pass API key. For example: | In the headers, it is necessary to pass API key. For example: | ||
Line 1308: | Line 1308: | ||
<WRAP center round info 60%> | <WRAP center round info 60%> | ||
- | To get information about currently active alerts, you can use [[current_alerts? | + | To get information about currently active alerts, you can use [[current_alerts? |
</ | </ | ||
Line 2334: | Line 2334: | ||
The %%//%% are comments, they are absent in the real reponse. | The %%//%% are comments, they are absent in the real reponse. | ||
+ | ====== API usage examples ====== | ||
+ | |||
+ | * [[access_from_lua_to_webhmi_itself | Data access from WebHMI itself]] | ||
+ | * [[example_of_data_access_from_excel_via_api|Data access from Excel]] | ||
+ | * [[example_of_data_access_from_c_c|Data access from C/C++]] | ||
+ | * [[google_sheet_api_example|Data access from the Google Sheets]] | ||
+ | * [[Android demo application]] | ||
+ | * [[Android application via Chrome]] | ||
access_via_api.1625229346.txt.gz · Last modified: 2021/07/02 12:35 by emozolyak