Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.
Matt Leslie edited this page Dec 3, 2017 · 15 revisions

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.

3) Create an instance of Trello

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);

Look at some more examples

Clone this wiki locally