I am currently trying to obtain a url to automatically download attachments from specific cards on a private board. I see from Update: Authenticated Access to S3 that attachments used to have public URLs, but now the only way to get a public link is via a GET request, to which a temporary (1 hour) link is returned with a signature.
I have followed the steps, however, I am only returned a JSON with a private link (no signature attached). Does anyone know what I am missing here? Any help is much appreciated!
Here is a snippet for the relevant parts of the code (Python): (Note that url is the trello api url)
Without running a test myself right now (time constraints), what does just simply print(test) reveal?
Also, are you something like Postman or Insomnia for testing? I find it’s easier to run my calls through those first so I know they work before I drop them into my actual code base.
I recommend Insomnia as I have experienced issues with Postman not sending OAuth1.0 correctly (there are several complaints about it on their forums).
Noted on running through Postman/Insomnia first for next time!
I have figured out that since the dl file is a pdf, it would not show as a JSON (had to do test.content to see results). I then simply saved it locally using the below code. Thank you for your help!