macjeff Posted April 17, 2023 Share Posted April 17, 2023 Can you update (if needed) to make this work in advance of the change? Jeff ----- Security image expiration Dear Netatmo developer, As of today, the images you get from the API, such as snapshots, vignettes or even profile images, do not expire.For security reasons, the retrieved URLs will now expire. Starting from the 09/05/2023, you will receive, along with the image URLs, an 'expire_at' field. The expiration time will be set at five minutes when rolled out but keep in mind that this value can change. As a result, you must take into account the 'expires_at' field that you will receive in the payload. What does it means for you ? Impacted API endpoint are : /homesdata when retrieving the image of each person /getevents when retrieving snapshots and vignettes If you do not download immediately the image URLs of these two API endpoints, you shall modify your code to handle the expiration time. Once the URLs are expired, and if you try to download the images again, you will receive a 404 HTTP error. You have to make a new API call to retrieve new URLs. Sincerely, Legrand - Netatmo - Bticino Link to comment
bpwwer Posted April 17, 2023 Share Posted April 17, 2023 I have no idea what that means. The existing node server doesn't use either of those endpoints. Link to comment
macjeff Posted April 17, 2023 Author Share Posted April 17, 2023 That makes two of us. Just pointing it out since they sent that to me. Link to comment
Recommended Posts