LoginSignup
0
4

More than 5 years have passed since last update.

Trello APIでチェックリスト付きカードを作るメモ(curl)

Last updated at Posted at 2016-12-03

前提

  • APIキーとトークンを取得済であること
  • カードを作成する対象のボードとリストが作成済であること

手順

1. BoardのIDを取得

curl
$ curl 'https://trello.com/1/members/[user]/boards?key=[key]&token=[token]'

ボードのIDを控えること

2. リストのIDを取得

curl
$ curl 'https://trello.com/1/boards/[BoardID]/lists?key=[key]&token=[token]'

リストのIDを控えること

3. カードの作成

curl
$ curl -X post 'https://trello.com/1/cards?key=[key]&token=[token]&idList=[ListID]&name=[card name]'

カードのIDを控えること

4. チェックリストの作成

curl
$ curl -X post 'https://trello.com/1/cards/[cardID]/checklists?key=[key]&token=[token]'

チェックリストのIDを控えること

5. チェックアイテムの追加

「kure」アイテムを追加

curl
$ curl -X post 'https://trello.com/1/cards/[cardID]/checklist/[checkListID]/checkitem?key=[key]&token=[token]&name=kure'

参考

API Reference | Trello Developers
https://developers.trello.com/advanced-reference/

0
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
4