Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Are special permissions required to download file via trello API?

Roger Lipp
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 14, 2022

My objective is to download files attached to a card via the API. 

To do this, I am trying to follow the instructions given at:

Update: Authenticated Access to S3 - Trello / Trello Announcements - The Atlassian Developer Community

 

Here's what I'm trying:

curl -H "Authorization: OAuth oauth_consumer_key=\"MY-TRELLO-KEY\", oath_token=\"MY-TRELLO-TOKEN\"" https://trello.com/1/cards/CARD-ID/attachments/ATTACHMENT-ID/download/MY-FILE.png

 

I get back:

unauthorized permission requested

 

I know my KEY and TOKEN are correct -- I am able to use them for other trello API calls (as query parameters)

I think the URL is correct. I am able to cut-and-paste that into an authorized web browser and I get the file.  I have also tried changing the hostname from "trello.com" to "api.trello.com" as indicated in the instructions.  No help.

 

I am currently using the free version of trello.  There is a statement in the announcement that mentions Enterprise users:

Authorization for attachments will be turned on for individual enterprises on an enterprise-by-enterprise fashion.

But it wasn't clear to me if this was intended to indicate that this feature is limited to Enterprise users, or simply that if you are an Enterprise user it will be rolled out over time.

 

Any help on what I might be missing?

1 answer

0 votes
milynnus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 14, 2022

@Roger Lipp 

Nothing special except for the correct api construct and valid api key and token. For that matter, anything that is has url https://trello.com will need permission.

Roger Lipp
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 14, 2022

Thanks @milynnus for looking at this.  Unfortunately, I'm still stumped.  

The examples seem to imply that the key and token used in the authorization header are the same as what is used as query parameters for other API access.  So that's what I've been doing.  Not 100% sure if that's right.  But it is definitely not working for me.

I have also tried https://api.trello.com and that gives the same result.

Like Caio Almeida likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events