Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Security image expiration- API change

Featured Replies

Posted

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

  • Author

That makes two of us.  Just pointing it out since they sent that to me.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.