0

I'm trying to follow the Quip API documentation:

https://quip.com/dev/automation/documentation/current#operation/exportThreadToPdf

to export a quip as PDF using Python. I've tried the following:

headers = {

"Authorization": "Bearer {token_id}",
"Content-Type":"application/json"}
#authenticate
response = requests.get("https://platform.quip.com/1/oauth/login",headers = headers)
# export pdf
response = requests.get('https://platform.quip.com/1/threads/{my_thread_id}/export/pdf')

However, I'm getting a 400 error as response. If I try it without the header, I get a 401 (unauthorized) error because it seems like it needs OAUTH2 authentication as highlighted in the documentation. Can anyone provide any insight into how you can properly authorize and use this method to download a quip? Thanks a lot.

0 Answers0