User Tools

Site Tools


Differences

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

Link to this comparison view

Both sides previous revision Previous revision
access_via_api [2020/04/07 11:57]
emozolyak [Getting meters log]
access_via_api [2020/04/07 12:01] (current)
emozolyak [Getting meters log]
Line 2214: Line 2214:
 To obtain entries from the meters log, you must perform follwing GET request on a URL http://​192.168.1.1/​api/​meters-log. To obtain entries from the meters log, you must perform follwing GET request on a URL http://​192.168.1.1/​api/​meters-log.
  
-In the request headers, it is necessary to pass the API key, the boundaries of the time interval of interest, ​and a list of register identifiers. ​X-WH-START and X-WH-END are transmitted in UnixTime format. ​The register ID is passed by a comma-separated list in the X-WH-REGISTERS ​header. For example:+In the request headers, it is necessary to pass the API key, the boundaries of the time interval of interest, X-WH-START and X-WH-END are transmitted in UnixTime format. ​All meter registers will be returned, so X-WH-REGISTER ​header ​is omitted. For example:
  
   X-WH-APIKEY:​ F3C74230818DA487BB2017CE5D0290F4DABCAFD7   X-WH-APIKEY:​ F3C74230818DA487BB2017CE5D0290F4DABCAFD7
   X-WH-START: 1422595501   X-WH-START: 1422595501
   X-WH-END: 1422599101   X-WH-END: 1422599101
-  X-WH-REGISTERS:​ 65 
- 
   ​   ​
 Also, in the headers, you must specify the desired data exchange format. Currently, only the JSON format is supported. Also, in the headers, you must specify the desired data exchange format. Currently, only the JSON format is supported.
Line 2239: Line 2237:
   X-WH-START: 1422595501   X-WH-START: 1422595501
   X-WH-END: 1422599101   X-WH-END: 1422599101
-  X-WH-REGISTERS:​ 65  
  
 Reply example: Reply example:

Page Tools