Created
September 28, 2015 11:39
-
-
Save object/199b04d5057750a078de to your computer and use it in GitHub Desktop.
Trello: adding a card comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run(() => | |
{ | |
TrelloProcessor.WaitForPendingRequests = true; | |
var card = new Card("5609144868309d39826b61f1"); | |
card.Comments.Add("New comment"); | |
TrelloProcessor.Shutdown(); | |
}); | |
private static void Run(Action action) | |
{ | |
var serializer = new ManateeSerializer(); | |
TrelloConfiguration.Serializer = serializer; | |
TrelloConfiguration.Deserializer = serializer; | |
TrelloConfiguration.JsonFactory = new ManateeFactory(); | |
//TrelloConfiguration.RestClientProvider = new RestSharpClientProvider(); | |
TrelloConfiguration.RestClientProvider = new WebApiClientProvider(); | |
TrelloAuthorization.Default.AppKey = authKey; | |
TrelloAuthorization.Default.UserToken = authToken; | |
TrelloConfiguration.ThrowOnTrelloError = true; | |
action(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment