Skip to main content

Question about the prescription of client ID&Secret

  • April 26, 2024
  • 1 reply
  • 109 views

We have purchased planet data and need to use Python automated script to continuously update the image data of a certain area, but the documentation says:

Note: Access tokens expire after an hour. To fix this, just request a new access token.

It seems that we can’t automatically request a new access token using the python API. How can we solve this problem?

1 reply

Hi

You can refresh your token before you make a request. An example can be found in our documentation.

Or you can use sentinelhub-py and let the package handle the session for you.