我正在尝试使用以下代码列出组织中的主板:
var serializer = new ManateeSerializer();
TrelloConfiguration.Serializer = serializer;
TrelloConfiguration.Deserializer = serializer;
TrelloConfiguration.JsonFactory = new ManateeFactory();
TrelloConfiguration.RestClientProvider = new WebApiClientProvider();
TrelloAuthorization.Default.AppKey = "<placeholder for my key>";
public IEnumerable<Board> GetBoards()
{
return new Search(SearchFor.IsOpen(), modelTypes: SearchModelType.Boards).Boards;
}
当我致电GetBoards()
时,我收到此错误:
{"Trello reported an error: 'not logged in'"}
答案 0 :(得分:1)
想出来,错过了这一行:
TrelloAuthorization.Default.UserToken = <UserToken>;