Sections

Method: GET

Provides current value of Global Counter for defined loggers of authenticated user. Global counter is never reseted.

Base URL

https://dlb.com.pl/api/v1/global_counter.php

Query parameters

Key Type Description
user Required string Login
mac Required string MAC address of the selected logger. Multiple addresses can be specified, separated by commas ,
token string (see Authentication)

Authentication

Providing token is also required, you can do it using one of the following methods:

  • Query parameter
  • Standard Bearer token in the header: Authorization: Bearer {token}
  • API key in the header: HTTP_X_API_KEY: {token}

Response

Response is a string to be decoded to JSON object, where keys are MAC addresses of the loggers, and values are current values of Global Counter for each logger.

Example response:

{
    "00:00:95:9D:68:16": 12345,
    "00:00:95:9D:68:FF": 67890
}

If a logger has never sent any data, its counter value will be 0.