Trello API - 我的名片的电子邮件地址 returns null

Trello API - E-mail address of my card returns null

我正在使用 cURL 向 Trello API 发送请求。

当我发送 GET 请求以获取卡片的电子邮件地址(用于向卡片发送评论)时,API returns null.

我搜索了一下,发现这通常是因为令牌中缺少所需的权限。我拥有令牌的所有权限:read,write,account.

有问题的卡在我个人资料的面板内,所以我应该可以使用我自己的密钥和令牌来执行此操作。

如果我用json(https://trello.com/c/[short-URL]/card-title.json)打开卡片的普通URL,那么邮箱地址就在那里。

有什么我遗漏的吗?

我收到了 Trello 支持的官方回复,其中解释了原因:

For security reasons, we don't display the card or board email addresses via the API. Having the email-to-board or card email address technically provides write access to the account, even if the token expires, and so we don't expose that information via the API. Although you're a member of that board, there are situations where another person or app could have access to your token, so we don't make that available via the API as a rule.