保持简短:
这个电话:https://api.trello.com/1/boards/<id>/cards/?fields=all&customFieldItems=true(原因与密钥/令牌)
将返还所有具有属性的卡片“……
自定义字段是针对电路板定义的,因此您需要查询电路板端点,例如:
curl https://api.trello.com/1/boards/${BOARD_ID}/customFields?key=${TRELLO_API_KEY}&token=${TRELLO_TOKEN}
这将返回一个JSON对象数组,这些对象对应于您定义的每个自定义字段(不仅仅是在特定卡上设置的自定义字段),例如:
[ { "id": "8c6a9274db4ac31ba3cbd81d", "idModel": "560bf4298b3dda300c18d09c", "modelType": "board", "fieldGroup": "e876ca319520ce6fde0b073213df077664cda39d26385f49cf6e2cbc8ec01801", "display": { "cardFront": true }, "name": "Points", "pos": 8192, "options": [ { "id": "5b6a9274db4ac31ba3cbd821", "idCustomField": "8c6a9274db4ac31ba3cbd81d", "value": { "text": "1" }, "color": "none", "pos": 20480 }, { "id": "5b6a9274db4ac31ba3cbd820", "idCustomField": "8c6a9274db4ac31ba3cbd81d", "value": { "text": "2" }, "color": "none", "pos": 36864 }, ], "type": "list" }, ]
看到: https://developers.trello.com/v1.0/reference#boardsidcustomfields