Forum Discussion
DougHenning1
Community Manager
Hi Scott,
In the Authorization setting in headers, it appears you're just sending the token itself. I think you meant to use:
'Authorization': auth_str
Hope that helps!
------------------------------
Doug Henning
------------------------------
In the Authorization setting in headers, it appears you're just sending the token itself. I think you meant to use:
'Authorization': auth_str
Hope that helps!
------------------------------
Doug Henning
------------------------------
DFDK
3 years agoQrew Member
- DougHenning13 years agoCommunity ManagerIs the file you're downloading JSON? If not then you'll get an error with those JSON commands. You can access the body of the response with "r.content" or "r.text" depending on the file type.
r = requests.get(
request_str,
headers = headers
)
print(r.content)
------------------------------
Doug Henning
------------------------------- DFDK3 years agoQrew Member
- DFDK3 years agoQrew Member
- NaftaliKulik2 years agoQrew MemberDid you ever solve this? I'm running into the same issue
------------------------------
Naftali Kulik
------------------------------