有没有办法通过 Trello API 获取卡片的所有评论?我可以得到卡片、它所在的列表、分配给它的成员等,但看不到获取评论的方法。
谢谢。
评论是一种操作(“commentCard”),因此请查看 /card/:id/actions
试试这个 API URL
方法:GET
GET /1/cards/[card id or shortlink]/actions
您将获得 json 中的动作对象列表,每个对象都有其类型,注释类型为“commentCard”,注释文本在
object.data.text
https://trello.com/docs/api/card/index.html#get-1-cards-card-id-or-shortlink-actions
Trello.actions.get(action.id + "/data", function() {})
似乎用client.js为我做。希望有帮助:)