Code: Select all
{"error":"invalid_request","error_description":"Invalid grant_type parameter or parameter missing"}
The code I use is below and have not changed. I also tried to directly issue the POST call (via hoppscotch.io) and I get the same error message
Code: Select all
r = requests.post(
url='https://api.netatmo.net/oauth2/token',
data={
'grant_type': 'password',
'client_id':REDACTED,
'client_secret':REDACTED,
'username': REDACTED,
'password': REDACTED,
'scope': 'read_station',
},
timeout=10
)
r.raise_for_status()
access_token = r.json()['access_token']
Would you have any idea where to go from there?