Home - dillenmeister/Trello.NET GitHub Wiki
Getting started with Trello.NET is simple!
1) Install Trello.NET from NuGet
Install-Package TrelloNet
2) Get your application key
Visit https://trello.com/1/appKey/generate to get your application key.
Trello
3) Create an instance of Pass the application key to the constructor when creating the Trello object.
ITrello trello = new Trello("[your application key]");
4) Read private data (optional)
To read private data, the user must authorize your application. Have the user browse to this url to authenticate your application:
var url = trello.GetAuthorizationUrl("Name of your app", Scope.ReadWrite);
The user will receive a token, call Authorize with it:
trello.Authorize("[the token the user got]");
5) Start doing stuff!
var myBoard = trello.Boards.Add("My Board");
var todoList = trello.Lists.Add("To Do", myBoard);
trello.Lists.Add("Doing", myBoard);
trello.Lists.Add("Done", myBoard);
trello.Cards.Add("My card", todoList);
foreach(var list in trello.Lists.ForBoard(myBoard))
Console.WriteLine(list.Name);