Skip to content
Rasmus Wulff Jensen edited this page May 12, 2023 · 64 revisions

This is the Main Client to communicate with the Trello API (aka everything is done via this)

Creating a new TrelloClient

In order to instantiate the client you need to provide:

Option Description
ApiKey (Required) The Trello API Key you get on https://trello.com/power-ups/admin/
Token (Required) Your Authorization Token you generate get on https://trello.com/power-ups/admin/
Options (Optional) Various options for the client (if null default options will be used) See below for details
HttpClient (Optional) Optional HTTP Client if you wish to specify it on your own (else an internal static HttpClient will be used for re-use)

Example

TrelloClient client = new TrelloClient("APIKey", "TOKEN");

TrelloClientOptions

The TrelloClientOptions can be passed optionally to the TrelloClient Constructor with the following options:

Option Description
ApiCallExceptionOption Control level of URL Details are shown in Exceptions from calls to the API
AllowDeleteOfBoards Controls if it is allowed to delete Boards (secondary confirmation)
IncludeCustomFieldsInCardGetMethods Control if cards should retrieve Custom Fields when retrieving cards (WARNING: Non-Get-Methods returning Card will NOT include Custom fields)
IncludeAttachmentsInCardGetMethods Control if cards should retrieve Attachments when retrieving cards (WARNING: Non-Get-Methods returning Card will NOT include Attachments)
AllowDeleteOfOrganizations Controls if it is allowed to delete Organizations (secondary confirmation)

Features of the API

Action Features

Feature Description
GetActionsOfBoardAsync Get the most recent Actions (Changelog Events) of a board
GetActionsOnCardAsync Get the most recent Actions (Changelog Events) on a Card
GetActionsForListAsync Get the most recent Actions (Changelog Events) for a List
GetActionsForMemberAsync Get the most recent Actions (Changelog Events) for a Member
GetActionsForOrganizationsAsync Get the most recent Actions (Changelog Events) for an Organization

Attachment Features

Feature Description

Board Features

Feature Description

Card Features

Feature Description

Checklist Features

Feature Description

Comments Features

Feature Description

Cover Features

Feature Description

Custom Field Features

Feature Description

Generic Features

Feature Description

Label Features

Feature Description

List Features

Feature Description

Member Features

Feature Description

Membership Features

Feature Description

Organization Features

Feature Description

Sticker Features

Feature Description

Wehook Features

Feature Description

Clone this wiki locally