Trello API:从卡片

时间:2018-06-05 14:41:42

标签: list api trello

我正在使用Trello的API,而我正在尝试检索已定义卡片列表的列表名称。

如果我这样做

https://api.trello.com/1/cards/{idCard}?key={mykey}&token={mytoken}

这返回了我用Id定义的卡的所有信息,并给了我idList。

enter image description here 如何只使用一个查询获取卡片列表的列表名称?

有类似于wordpress的内容,让用户可以使用查询中的_embed标记检索json中嵌入的所有信息吗?

谢谢

1 个答案:

答案 0 :(得分:1)

检查the official document of /cards/{id}/{field}。您可以获得这样的任何字段,如果是idList

https://api.trello.com/1/cards/{idCard}/idList?key={mykey}&token={mytoken}

另一种方式:

https://api.trello.com/1/cards/{idCard}/list?key={mykey}&token={mytoken}&fields=id