I change sampleType and tiff request but now return a NaN values. I was trying with the example but the code show me the next error
from oauthlib.oauth2 import BackendApplicationClient
from requests_oauthlib import OAuth2Session
# Your client credentials
client_id = "hello"
client_secret = "wo"
# Create a session
client = BackendApplicationClient(client_id=client_id)
oauth = OAuth2Session(client=client)
# Get token for the session
token = oauth.fetch_token(token_url='https://identity.dataspace.copernicus.eu/auth/realms/CDSE/protocol/openid-connect/token',
client_secret=client_secret, include_client_id=True)
# All requests using this session will have an access token automatically added
resp = oauth.get("...")
print(resp.content)
I find your answer here but don’t work
I get this error:
469 """Intercept all requests and add the OAuth 2 token if present.""" 470 if not is_secure_transport(url):
→ 471 raise InsecureTransportError()
472 if self.token and not withhold_token:
473 log.debug(InsecureTransportError: (insecure_transport) OAuth 2 MUST utilize https.