public TrelloClient(ITrelloConfig trelloConfig) { _trelloConfig = trelloConfig; _trello = Ioc.Container.Resolve<ITrello>(new ParameterOverride("key", _trelloConfig.TrelloKey)); _trello.Authorize(_trelloConfig.TrelloToken); _lists = GetLists(); _members = GetMembers(); _cards = new List<TfsCard>(); BoardId = new BoardId(trelloConfig.BoardId); }
private bool addComment(string boardId, int cardNumber, string comment, string userToken) { trello.Authorize(userToken); var bId = new BoardId(boardId); var card = trello.Cards.WithShortId(cardNumber, bId); var cardId = new CardId(card.Id); trello.Cards.AddComment(cardId, "Commit added: " + comment); return true; }