The access token is by default valid for 30 minutes, or 1800 seconds. This is also indicated when you make the API call to the token endpoint. When the token expires, you can either request a new one, or use the refresh token to receive a new access token.
The possible values for this parameter are: HOURS, DAYS, WEEKS, MONTHS, YEARS. For instance, if you make a GET call to the /consumption/gas/data endpoint you need to use this parameter.
-X -H https://api.toon.eu/toon/ /consumption/electricity/ ?fromTime &toTime
This error indicates the Content-Type is not provided or is incorrect. This is a header that needs to be set on a request. For this request, the parameters are given in the x-www-form- urlencoded format. This means the provided headers will be ‘Content-Type: application/x-www-form- urlencoded ’.