req = urllib.request.Request(url, None, {'Authorization': 'Bearer %s' % auth_token})
response = urllib.request.urlopen(req)
html = response.read()
json_obj = json.loads(html)
return json_obj
Making an API call in Python with an API that requires a bearer token