我曾尝试通过 Chello(Trello API 的 .NET 包装器)和 Fiddler 执行此操作。在这两种情况下,我都会收到带有“名称无效值”的 400 响应。
这是请求和响应数据。请注意,出于安全原因,我已更改密钥、令牌和 idList。此外,令牌确实具有读/写权限。
POST https://api.trello.com/1/cards?key=<myKey>&token=<myToken> HTTP/1.1
User-Agent: Fiddler
Host: api.trello.com
Content-Length: 115
{
name: "My new card name",
desc: "My new card description",
idList: "<myIdList>"
}
HTTP/1.1 400 Bad Request
X-Powered-By: Express
Content-Type: text/plain; charset=utf-8
Content-Length: 23
Cache-Control: max-age=0, must-revalidate
Expires: Thu, 01 Jan 1970 00:00:00
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, PUT, POST, DELETE
Connection: keep-alive
invalid value for name
对此问题的任何帮助将不胜感激。