Trello
Rest
API
code: (bash)
# vars
user=<>
key=<>
token=<>
# members
curl -s "
https://trello.com/1/members/${user}/boards?key=${key}&token=${token}"
| jq .
# boards
curl -s "
https://trello.com/1/boards/$(curl
-s "
https://trello.com/1/members/${user}/boards?key=${key}&token=${token}"
| jq -r '.[].id')/lists?key=${key}&token=${token}" | jq .
example
code: (bash)
for board in $(curl -s "
https://trello.com/1/members/${user}/boards?key=${key}&token=${token}"
| jq -r ".[].id"); do
for list in $(curl -s "
https://trello.com/1/boards/${board}/lists?key=${key}&token=${token}"
| jq -r ".[].id"); do
for card in $(curl -s "
https://trello.com/1/lists/${list}/cards?key=${key}&token=${token}"
| jq .); do
echo ${card}
done
done
done
Reference
PythonでTrelloのタスクを取得する - みやびのどっとぴーわい
Python + py-trelloで、Trello APIを使ってみた - メモ的な思考的な
【30分で動かすシリーズ】TrelloにAPIを使ってカードの起票や取得をしてみる - サーバーワークスエンジニアブログ