如何通过 Trello API 检索板上所有存档的卡片? [英] How to retrieve all archived cards on a board through the Trello API?

查看:40
本文介绍了如何通过 Trello API 检索板上所有存档的卡片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下问题是在 Trello API 板上提出的.

The following question was asked on the Trello API board.

我想我会在这里添加它.

I thought I'd add it here.

如何获取板上所有存档的卡片?

How can I obtain all archived cards on a board?

推荐答案

您可以通过使用板端点上的 [filter] 选项来实现此目的:

You can achieve this through use of the [filter] option on the boards endpoint:

/1/boards/[boardId]/cards?filter=closed&key=[your appKey]

closed=true 部分起到了作用.它指示 API 仅返回已存档的卡片.我相当确定它在存档列表中包含卡片,但我不能 100% 确定.

It's the closed=true part that does the trick. It directs the API to only return cards which have been archived. I'm fairly certain it includes cards in archived lists, but I'm not 100% sure.

这篇关于如何通过 Trello API 检索板上所有存档的卡片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆