Module trello

ballerinax/trello Ballerina library

1.5.1

Overview

This is a generated connector for Trello API v1 OpenAPI specification.

Client endpoint of Trello API provides capability to perform CRUD (Create, Read, Update, and Delete) operations on resources in a Trello account.

Prerequisites

  • Create a Trello account
  • Obtain tokens
    • Use this guide to obtain the API key and generate a token related to your account.

Quickstart

To use the Trello connector in your Ballerina application, update the .bal file as follows:

Step 1 - Import connector

First, import the ballerinax/trello module into the Ballerina project.

Copy
import ballerinax/trello;

Step 2 - Create a new connector instance

You can now make the connection configuration using the API key and token.

Copy
trello:ApiKeysConfig configuration = {
    key: <TRELLO_API_KEY>,
    token: <TRELLO_API_TOKEN>
};

trello:Client trelloClient = check new Client(configuration);

Step 3 - Invoke connector operation

  1. Add a new Board
Copy
public function main() {
    trello:Boards board = {
        idBoardSource: "<THE_ID_OF_PARENT_BOARD>"
    };
    http:Response|error boardInfo = trelloClient->addBoards(board);
}
  1. Get a Borad
Copy
public function main() {
    trello:Boards board = {
        idBoardSource: "<THE_ID_OF_PARENT_BOARD>"
    };
    http:Response|error boardInfo = trelloClient->getBoardsByIdBoard(boardId);
    if (boardInfo is http:Response) {
        json|error info = boardInfo.getJsonPayload();
        if (info is json) {
            log:printInfo("Board Info " + info.toString());
        }
    }
}
  1. Use bal run command to compile and run the Ballerina program

Import

import ballerinax/trello;Copy

Metadata

Released date: 12 months ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 1966

Current verison: 301


Weekly downloads


Source repository


Keywords

Productivity/Task Management

Cost/Freeemium


Contributors

Other versions

See more...