尝试使用Manatee (BRILLIANT library)的特性来获得用户在板上与之交互的卡片的实时更新。
我运行以下代码:
Card card = new Search(SearchFor.TextInDescription("id: 2643"), modelTypes: SearchModelType.Cards).Cards.Single();
Webhook<Card> webhook = new Webhook<Card>(card, "http://<host>/api/webhooks/incoming/trello");得到这个错误:
StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=15768000
X-XSS-Protection: 1; mode=block
X-FRAME-OPTIONS: DENY
X-Trello-Version: 1.598.0
X-Trello-Environment: Production
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, PUT, POST, DELETE
Vary: Accept-Encoding
Cache-Control: no-store, must-revalidate, no-cache, max-age=0
Date: Sat, 19 Mar 2016 14:22:06 GMT
ETag: W/"76-fa944d06"
Content-Length: 118
Content-Type: text/plain; charset=utf-8
Expires: Thu, 01 Jan 1970 00:00:00 GMT
}有什么想法吗?任何帮助都将不胜感激。
发布于 2016-03-23 13:28:06
Manatee.Trello.WebApi中有一个bug。对于这个调用,Manatee.Trello.RestSharp似乎没有问题。一旦我发现了这个问题,我就会发布一个修复程序。
更新
我已将文本编码更新为UTF-8。记录已解决的响应JSON数据也存在一个内部问题。
请下载Manatee.Trello v1.8.3和Manatee.Trello.WebApi v1.0.3。这个问题应该用这些版本来解决。
https://stackoverflow.com/questions/36099958
复制相似问题