2016-03-16 53 views
1

我想列出板在我與這個組織代碼: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

想通了,缺少此行:

TrelloAuthorization.Default.UserToken = <UserToken>;