刚开始使用Manatee.trello遇到如下错误

Just getting started with Manatee.trello and encountering the following error

Exception thrown: 'System.Net.Http.UnsupportedMediaTypeException' in System.Net.Http.Formatting.dll

Exception thrown: 'System.AggregateException' in mscorlib.dll

Dim serializer As New ManateeSerializer

TrelloConfiguration.Serializer = serializer
TrelloConfiguration.Deserializer = serializer
TrelloConfiguration.JsonFactory = New ManateeFactory()
TrelloConfiguration.RestClientProvider = New WebApiClientProvider()
TrelloAuthorization.Default.AppKey = "[My app key]"
TrelloAuthorization.Default.UserToken = "[my app secret]"

Dim boardId As String = "56425ef7de9eb12872b4a662"
Dim Board As New Board(boardId)
Console.WriteLine(Board)

这是我通过 API 访问 Trello 的第一步,所以我确定我一定遗漏了一些重要的东西。应用程序编译正常,只要我不引用 "Board" 代码就不会出错。

我不太清楚 "boardId" 应该是什么?从 Trello API 网站的卡片中获取 JSON 示例?

我能够通过包含以下内容来解决此问题:

TrelloConfiguration.RestClientProvider = New RestSharpClientProvider()

我复制的示例中似乎缺少这行代码。

对于最终发现这个问题的任何新手,我的下一个问题是如何获得用于 API 的用户令牌。这个答案让我继续......

How to get a permanent user token for writes using the Trello API?