Hi,
I am trying to get access token for a user, but I keep receiving "status":"BAD_GRANT_TYPE","message":"missing or unknown grant type"
. I have tried encoding query params or passing them as one json param, but nothing worked.
payload = {
'grant_type': 'authorization_code',
'client_id': 'f6***',
'client_secret': 'f2***',
'redirect_uri': 'https://sc***/',
'code': '5f***'
}
requests.post('https://api.hubapi.com/oauth/v1/token?', params=payload)