This repository has been archived by the owner on Dec 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
Home
Matt Leslie edited this page Dec 3, 2017
·
15 revisions
Getting started with Trello.NET is simple!
Install-Package TrelloNet
Visit https://trello.com/1/appKey/generate to get your application key.
Pass the application key to the constructor when creating the Trello object.
ITrello trello = new Trello("[your application key]");
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]");
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);