我正在尝试在特定列表中获得顶级Trello卡,但不确定如何根据位置从列表中获取卡。有任何想法吗?而且,我已经非常了解Trello API,只是根本无法弄清楚。
到目前为止,我已经拥有了,但是我不知道如何获得顶牌。
let listID = "5ec3fda8a26c384e44f063bb";
trello.getcardsOnListWithExtraParams(listID,"pos:top",function(error,trelloCard) {
if (error) {
console.log('An error occured with Trello card.' + error)
message.channel.send({
embed: {
color: 0xff604d,description: "An error occured! Please try again later or use the support server link."
}
});
} else {
console.log('Found card:',trelloCard);
}
});