Trello Manatee:未登入

时间:2016-03-16 06:59:33

标签: manatee.trello

我正在尝试使用以下代码列出组织中的主板:

        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'"}

1 个答案:

答案 0 :(得分:1)

想出来,错过了这一行:

TrelloAuthorization.Default.UserToken = <UserToken>;