尝试使用Webhook
Manatee Trello(BRILLIANT 库)的功能,以获取用户在板上交互的卡片的实时更新。
我运行这段代码:
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
}
任何人的想法?任何帮助将非常感激。