User Tools

Site Tools


access_via_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
access_via_api [2021/07/02 12:35] – [Alert list] emozolyakaccess_via_api [2022/01/26 10:00] – [API usage examples] atolstov
Line 1253: Line 1253:
 To get a list of all alerts, you must perform a GET request on the URL like this: http://192.168.1.1/api/alerts. To get a list of all alerts, you must perform a GET request on the URL like this: http://192.168.1.1/api/alerts.
  
-To obtain information about a particular alert, you must perform a following GET request on a URL 'http://192.168.1.1/api/alerts/1' . Here "1" is the ID of the desired graph.+To obtain information about a particular alert, you must perform a following GET request on a URL 'http://192.168.1.1/api/alerts/1' . Here "1" is the ID of the desired alert.
  
 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?s[]=getcurrentalerts |GetCurrentAlerts]] function and copying its output to some register. +To get information about currently active alerts, you can use [[current_alerts?s[]=getcurrentalerts |GetCurrentAlerts]] function and copying its output to some register (and then use GET method for current register's values)
 </WRAP> </WRAP>
  
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 ======
 +
 +    * [[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.txt · Last modified: 2023/03/02 10:53 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki