Using this template helps us debug your issues more effectively 
Description
I am Unable to refresh the access token and getting an error 401.Can you please look into it why the error is happening
How To Reproduce (If applicable)
Steps to reproduce the behavior:
def refreshZoomToken(self):
âââRefresh access tokenâââ
#print(self.client_id)
#b64encoded = base64.b64encode(self.get_userpass)
encoded_u = base64.b64encode(self.get_userpass.encode()).decode()
# print(encoded_u)
with open(self.get_tokenfile, ârâ) as f:
token_json = json.loads((f.read()))
refresh_token = token_json[ârefresh_tokenâ]
#print(refresh_token)
header = {âAuthorisationâ : âBasic %sâ % encoded_u, âcontent-typeâ:âapplication/x-www-form-urlencodedâ}
payload = (âgrant_type=refresh_token&refresh_token={0}â).format(refresh_token)
response = requests.post(self.token_url, params=payload, headers=header)
print(response.request.url)
print(âresponseâ,response)
if response.status_code == 200:
results = json.loads(response.text)
print({} ,format(results))