Access token stops working

The Netatmo API is a set of webservices allowing developers and third parties to access Netatmo device's data.
Post Reply
Boston4725
Posts: 1
Joined: 12 Apr 2019, 20:54

Access token stops working

Post by Boston4725 » 12 Apr 2019, 20:58

I'm new to this so forgive my ignorance!

I'm trying to import my station data to a Google Sheet using the API. I was able to generate an access token and write a script to import the data every hour. However, the script stops working after a few times and I get an "invalid token" error message. I can't figure out what I'm doing wrong, especially since it works initially and then stops.

{"error":{"code":2,"message":"Invalid access token"}}

racarter
Posts: 12
Joined: 05 Aug 2017, 22:50

Re: Access token stops working

Post by racarter » 12 Apr 2019, 23:42

Tokens expire after three hours - after that you need to request a new one.

https://dev.netatmo.com/resources/techn ... hingatoken

avm067s
Posts: 9
Joined: 24 Mar 2019, 13:29

Re: Access token stops working

Post by avm067s » 16 Apr 2019, 11:29

If someone finds a good way to do this, please info me!

Post Reply

Return to “Netatmo API”