Soumya Goyal
Level 1

Other questions

Hii QBO community,
Thank you , But we are trying to get access token from the below script that is created by us and getting previously mentioned issue here :

client_id = "<client_id>"
client_secret = "<client_secret>"
code = f"{client_id}:{client_secret}"
code = code.encode('ascii')
base_code = base64.b64encode(code)
base_code = base_code.decode('ascii')
print(base_code)
headers = {
'Accept': 'application/json',
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': f"Basic {base_code}"
}
payload = dict(
grant_type="refresh_token",
refresh_token=""

)

response = request("POST", url="https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer", headers=headers, data=payload)

Thanks & Regards