Skip to content

.NET Implementation of the Trello API

License

Notifications You must be signed in to change notification settings

compujuckel/TrelloDotNet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NuGet Badge Coverage Status WIKI Changelog YouTube Rest API API Keys Trello Developers LinkedIn Group

TrelloDotNet

Welcome to TrelloDotNet; a modern .NET Implementation of the Trello API.

Features

Getting Started

  1. Install the 'TrelloDotNet' NuGet Package (dotnet add package TrelloDotNet)
  2. Retrieve your API-Key and Token
  3. Create new instance of TrelloDotNet.TrelloClient
  4. Locate you Ids of your Boards, List, and Cards (see video here or at the end on this ReadMe)
  5. Use the TrelloClient based on the examples below and/or the Wiki.

Examples of Usage:

TrelloClient client = new TrelloClient("APIKey", "TOKEN"); //IMPORTANT: Remember to NOT leave Key and Token in clear text!

//Get a board
Board board = await client.GetBoardAsync("<boardId>");

//Get Lists on a board
List<List> lists = await client.GetCardsOnBoardAsync("<boardId>");

//Get a card
Card card = await client.GetCardAsync("<cardId>");

//Get Cards on Board
List<Card> cardsOnBoard = await trelloClient.GetCardsOnBoardAsync("<boardId>");

//Get Cards in List
List<Card> cardsInList = await trelloClient.GetCardsInListAsync("<listId>");

//Add a card
Card input = new Card("<listId>", "My Card", "My Card description");
//todo - add more about the card 
Card newCard = await client.AddCardAsync(input);

//Add a Checklist to a card
var checklistItems = new List<ChecklistItem>
{
    new("ItemA"),
    new("ItemB"),
    new("ItemC")
};
Checklist newChecklist = new Checklist("Sample Checklist", checklistItems);
Checklist addedChecklist = await client.AddChecklistAsync("<cardId>", newChecklist);

Video Guides

Handy links

On the subject of getting Ids from Trello

The easiest way to get Ids in Trello is to use this Power-Up to copy/paste them (Recommended)

API Developer ID Helper Power-Up

Alternative use the share buttons in the project (require no Power-Up but more cumbersome)

Trello Board

The Export looks like this (search for id or use a tool to pretty-print the JSON to get a better view)

JSON Example

More info, bugs, or questions?

Visit the Github Page: https://github.com/rwjdk/TrelloDotNet

Have Fun :-)

About

.NET Implementation of the Trello API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%