Skip to content

Instantly share code, notes, and snippets.

@dhamkur
Last active February 14, 2022 03:33
Show Gist options
  • Save dhamkur/382951a4fd00846b0ef41ed8cd5af365 to your computer and use it in GitHub Desktop.
Save dhamkur/382951a4fd00846b0ef41ed8cd5af365 to your computer and use it in GitHub Desktop.
basic-trello-access-attachment.txt
How to get your key?
- https://trello.com/app-key
- Copy developer api key
How to get your token?
- https://trello.com/1/authorize?expiration=1day&name=MyPersonalToken&scope=read&response_type=token&key={YourAPIKey}
curl -H "Authorization: OAuth oauth_consumer_key=\"yourKey\", oauth_token=\"yourToken\"" "https://api.trello.com/1/cards/idCard/attachments/idAttachment/download/namefile.jpg" --output "namefile.jpg"
curl -H "Authorization: OAuth oauth_consumer_key=\"yourKey\", oauth_token=\"yourToken\"" "https://api.trello.com/1/members/me"
# Don't delete the backslash \"yourKey\", it will make curl can't read the key and token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment