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 revisionBoth sides next revision
access_via_api [2020/04/07 11:57] – [Getting meters log] emozolyakaccess_via_api [2020/04/07 12:01] – [Getting meters log] emozolyak
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:
access_via_api.txt · Last modified: 2023/03/02 10:53 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki