Skip to content
Merged
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
f12d6b6
Add generated Ballerina connector
SashenkaG Jun 16, 2025
6d75d49
[Automated] Update the toml files
SashenkaG Jun 18, 2025
17a1196
Add openapi spec for trello
SashenkaG Jun 20, 2025
c5f7cb2
Generate connector for trello
SashenkaG Jun 20, 2025
1f250a4
Add test cases for trello connector
SashenkaG Jun 20, 2025
63d24bf
[Automated] Update the toml files
SashenkaG Jun 24, 2025
d59d162
[Automated] Update the toml files
SashenkaG Jun 24, 2025
1994f2a
[Automated] Update the toml files
SashenkaG Jun 24, 2025
1988ead
[Automated] Update the toml files
SashenkaG Jun 24, 2025
58952da
[Automated] Update the toml files
SashenkaG Jun 24, 2025
8877c66
Update copyright year and refactor test functions for improved clarity
SashenkaG Jun 25, 2025
c12f26d
[Automated] Update the toml files
SashenkaG Jun 25, 2025
b44b891
Simplify resource function implementations in mock_service.bal
SashenkaG Jun 25, 2025
1950eda
Update sanitation document
SashenkaG Jun 25, 2025
7bc3850
Refactor mock_service.bal and tests.bal for improved clarity and cons…
SashenkaG Jun 25, 2025
210d14e
[Automated] Update the toml files
SashenkaG Jun 25, 2025
df19790
Add keywords and icon to Ballerina.toml
SashenkaG Jun 25, 2025
116a523
Add icon image to ballerina directory
SashenkaG Jun 25, 2025
426d6ae
Add missing new lines in mock_service.bal and tests.bal for improved …
SashenkaG Jun 25, 2025
7dcfbd9
[Automated] Update the toml files
SashenkaG Jun 25, 2025
db0b832
Remove unnecessary parameters from resource function documentation in…
SashenkaG Jun 25, 2025
27c05a4
Fix in Ballerina.toml
SashenkaG Jun 25, 2025
d95e603
Fix formatting and update source link in sanitations.md
SashenkaG Jun 25, 2025
f471732
Update sanitations.md
SashenkaG Jun 25, 2025
fbec81e
Fix formatting and update command in sanitations.md
SashenkaG Jun 25, 2025
d586d47
Update ballerinaLangVersion to 2201.12.7 in gradle.properties
SashenkaG Jun 25, 2025
b4c2373
Update ballerinaGradlePluginVersion to 2.3.0 in gradle.properties
SashenkaG Jun 26, 2025
4d0c72c
Regenerate client and add copyright notice and license information to…
SashenkaG Jun 26, 2025
4da7fe9
Enhance README and testing documentation for Trello connector; add se…
SashenkaG Jun 26, 2025
f9d426d
Update README.md
SashenkaG Jun 26, 2025
0471ccb
Update README.md
SashenkaG Jun 26, 2025
4277fc0
Refactor README image placements
SashenkaG Jun 26, 2025
5bba5c3
Merge branch 'main' of https://github.com/SashenkaG/module-ballerinax…
SashenkaG Jun 26, 2025
5c974c0
Merge branch 'ballerina-platform:main' into main
SashenkaG Jun 27, 2025
244ad5a
Update .gitignore, README, and test configurations; add new dependenc…
SashenkaG Jun 27, 2025
bfe7368
Add example for creating and retrieving a list and cards in Trello; i…
SashenkaG Jun 27, 2025
1d65804
Add example for creating and managing cards in Trello; include necess…
SashenkaG Jun 27, 2025
b8040fd
Remove local repository reference from Ballerina.toml for Create_card…
SashenkaG Jun 27, 2025
5138619
Remove local repository reference from Ballerina.toml for Create_list…
SashenkaG Jun 27, 2025
49e8d04
Update README.md to use absolute URLs for images in setup instructions
SashenkaG Jun 27, 2025
34e6506
Refactor README.md for clarity and consistency; update links and imag…
SashenkaG Jun 27, 2025
5cfb14c
Refactor test configuration to use hardcoded values for local testing…
SashenkaG Jun 27, 2025
ff7010d
[Automated] Update the toml files
SashenkaG Jun 27, 2025
a4a8133
Remove unused devcontainer and gitignore files from Create_card and C…
SashenkaG Jun 28, 2025
8162da9
Rename package in Ballerina.toml nad remove local dependency
SashenkaG Jun 28, 2025
eebf4ef
Rename package in Ballerina.toml to follow naming conventions and rem…
SashenkaG Jun 28, 2025
ab2f14d
Update configuration keys in README.md for Trello API to match naming…
SashenkaG Jun 28, 2025
e101b54
Fix formatting in README.md for Create_list example to enhance readab…
SashenkaG Jun 28, 2025
d288e54
Refactor Create_card and Create_list examples to improve error handli…
SashenkaG Jun 28, 2025
04e6117
Fix: Make build scripts executable
SashenkaG Jun 28, 2025
6874385
Update configuration in examples to use configurable variables
SashenkaG Jun 30, 2025
9430cb9
Update README.md to clarify configuration settings
SashenkaG Jun 30, 2025
7c43c51
updated tests.bal and README.md
SashenkaG Jun 30, 2025
8dd1824
Add README and renamed files
SashenkaG Jun 30, 2025
66cfa92
Deleted duplicate file
SashenkaG Jun 30, 2025
ae3033c
Remove Trello dependency from example configurations and update docum…
SashenkaG Jun 30, 2025
d284771
Fix example links in README to use lowercase directory names
SashenkaG Jun 30, 2025
ddfe419
Refactor README for clarity and formatting improvements
SashenkaG Jun 30, 2025
497f086
Add example for creating a card in the README
SashenkaG Jun 30, 2025
f21b18f
Update configuration keys in example documentation for consistency
SashenkaG Jun 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ target/
generated/
.ballerina
**/Config.toml
examples/**/Dependencies.toml

# Ignore Gradle project-specific cache directory
.gradle
Expand Down
285 changes: 169 additions & 116 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,116 +1,169 @@
# Ballerina Trello connector

[![Build](https://github.com/ballerina-platform/module-ballerinax-trello/actions/workflows/ci.yml/badge.svg)](https://github.com/ballerina-platform/module-ballerinax-trello/actions/workflows/ci.yml)
[![GitHub Last Commit](https://img.shields.io/github/last-commit/ballerina-platform/module-ballerinax-trello.svg)](https://github.com/ballerina-platform/module-ballerinax-trello/commits/master)
[![GitHub Issues](https://img.shields.io/github/issues/ballerina-platform/ballerina-library/module/trello.svg?label=Open%20Issues)](https://github.com/ballerina-platform/ballerina-library/labels/module%trello)

## Overview

[//]: # (TODO: Add overview mentioning the purpose of the module, supported REST API versions, and other high-level details.)

## Setup guide

[//]: # (TODO: Add detailed steps to obtain credentials and configure the module.)

## Quickstart

[//]: # (TODO: Add a quickstart guide to demonstrate a basic functionality of the module, including sample code snippets.)

## Examples

The `Trello` connector provides practical examples illustrating usage in various scenarios. Explore these [examples](https://github.com/module-ballerinax-trello/tree/main/examples/), covering the following use cases:

[//]: # (TODO: Add examples)

## Build from the source

### Setting up the prerequisites

1. Download and install Java SE Development Kit (JDK) version 21. You can download it from either of the following sources:

* [Oracle JDK](https://www.oracle.com/java/technologies/downloads/)
* [OpenJDK](https://adoptium.net/)

> **Note:** After installation, remember to set the `JAVA_HOME` environment variable to the directory where JDK was installed.

2. Download and install [Ballerina Swan Lake](https://ballerina.io/).

3. Download and install [Docker](https://www.docker.com/get-started).

> **Note**: Ensure that the Docker daemon is running before executing any tests.

4. Export Github Personal access token with read package permissions as follows,

```bash
export packageUser=<Username>
export packagePAT=<Personal access token>
```

### Build options

Execute the commands below to build from the source.

1. To build the package:

```bash
./gradlew clean build
```

2. To run the tests:

```bash
./gradlew clean test
```

3. To build the without the tests:

```bash
./gradlew clean build -x test
```

4. To run tests against different environments:

```bash
./gradlew clean test -Pgroups=<Comma separated groups/test cases>
```

5. To debug the package with a remote debugger:

```bash
./gradlew clean build -Pdebug=<port>
```

6. To debug with the Ballerina language:

```bash
./gradlew clean build -PbalJavaDebug=<port>
```

7. Publish the generated artifacts to the local Ballerina Central repository:

```bash
./gradlew clean build -PpublishToLocalCentral=true
```

8. Publish the generated artifacts to the Ballerina Central repository:

```bash
./gradlew clean build -PpublishToCentral=true
```

## Contribute to Ballerina

As an open-source project, Ballerina welcomes contributions from the community.

For more information, go to the [contribution guidelines](https://github.com/ballerina-platform/ballerina-lang/blob/master/CONTRIBUTING.md).

## Code of conduct

All the contributors are encouraged to read the [Ballerina Code of Conduct](https://ballerina.io/code-of-conduct).

## Useful links

* For more information go to the [`trello` package](https://central.ballerina.io/ballerinax/trello/latest).
* For example demonstrations of the usage, go to [Ballerina By Examples](https://ballerina.io/learn/by-example/).
* Chat live with us via our [Discord server](https://discord.gg/ballerinalang).
* Post all technical questions on Stack Overflow with the [#ballerina](https://stackoverflow.com/questions/tagged/ballerina) tag.
# Ballerina Trello connector

[![Build](https://github.com/ballerina-platform/module-ballerinax-trello/actions/workflows/ci.yml/badge.svg)](https://github.com/ballerina-platform/module-ballerinax-trello/actions/workflows/ci.yml)
[![GitHub Last Commit](https://img.shields.io/github/last-commit/ballerina-platform/module-ballerinax-trello.svg)](https://github.com/ballerina-platform/module-ballerinax-trello/commits/master)
[![GitHub Issues](https://img.shields.io/github/issues/ballerina-platform/ballerina-library/module/trello.svg?label=Open%20Issues)](https://github.com/ballerina-platform/ballerina-library/labels/module%trello)

## Overview

[Trello](https://trello.com/) is a popular web-based project management and collaboration platform developed by Atlassian, allowing users to organize tasks, projects, and workflows using boards, lists, and cards.

The `ballerinax/trello` package provides APIs to connect and interact with [Trello's RESTful API endpoints](https://developer.atlassian.com/cloud/trello/rest/api-group-actions/), enabling developers to seamlessly manage boards, lists, cards, and other Trello resources.

## Setup guide

To use the Trello connector, you must have access to the Trello API through a Trello account and an API key and token generated from it. If you do not have a Trello account, you can sign up for one [here](https://id.atlassian.com/signup). You can generate your Trello API key and token by following the instructions at [Trello API Keys](https://developer.atlassian.com/cloud/trello/guides/rest-api/api-introduction/).

1. Visit https://trello.com/power-ups/admin and create a new powerup

![trello powerup](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-powerups.png)

2. Enter the required details:

- Name of your Power-Up
- Iframe Connector URL (can be a placeholder URL during development)
Click “Create” to create your Power-Up.

![trello powerup form](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-form.png)

3. Navigate to 'API Key' and click on 'Generate'

![generate trello apikey](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-generateKey.png)

Copy and securely store your API Key.

4. Next to the API Key description, there's a link to the token.
Click the link, authorize the Power-Up, and you’ll be redirected to a page displaying your OAuth token.

![get trello Key](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-key.png)

![allow token](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-permission.png)

Copy and securely store the Token.

![trello token](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-token.png)

## Quickstart

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

#### Step 1: Import the module

Import the Trello module.

```bash
import ballerinax/trello;
```

#### Step 2: Instantiate a new connector

Create a `Config.toml` file and configure the obtained credentials as follows:

```bash
key = "your_api_key"
token = "your_api_token"
```

#### Step 3: Invoke the connector operation

Now, utilize the available connector operations.

## Examples

The `Trello` connector provides practical examples illustrating usage in various scenarios. Explore these [examples](https://github.com/module-ballerinax-trello/tree/main/examples/), covering the following use cases:

1. [**Create and Retrieve a List and Cards in Trello**](examples/create_list/) - Create a new list in a specific Trello board and retrieve its details using the list ID.
2. [**Create, Update fetch add label to a Card in Trello**](examples/create_card/) - Create a new card in a Trello list and update the card's name and view it.

## Build from the source

### Setting up the prerequisites

1. Download and install Java SE Development Kit (JDK) version 21. You can download it from either of the following sources:

- [Oracle JDK](https://www.oracle.com/java/technologies/downloads/)
- [OpenJDK](https://adoptium.net/)

> **Note:** After installation, remember to set the `JAVA_HOME` environment variable to the directory where JDK was installed.

2. Download and install [Ballerina Swan Lake](https://ballerina.io/).

3. Download and install [Docker](https://www.docker.com/get-started).

> **Note**: Ensure that the Docker daemon is running before executing any tests.

4. Export Github Personal access token with read package permissions as follows,

```bash
export packageUser=<Username>
export packagePAT=<Personal access token>
```

### Build options

Execute the commands below to build from the source.

1. To build the package:

```bash
./gradlew clean build
```

2. To run the tests:

```bash
./gradlew clean test
```

3. To build the without the tests:

```bash
./gradlew clean build -x test
```

4. To run tests against different environments:

```bash
./gradlew clean test -Pgroups=<Comma separated groups/test cases>
```

5. To debug the package with a remote debugger:

```bash
./gradlew clean build -Pdebug=<port>
```

6. To debug with the Ballerina language:

```bash
./gradlew clean build -PbalJavaDebug=<port>
```

7. Publish the generated artifacts to the local Ballerina Central repository:

```bash
./gradlew clean build -PpublishToLocalCentral=true
```

8. Publish the generated artifacts to the Ballerina Central repository:

```bash
./gradlew clean build -PpublishToCentral=true
```

## Contribute to Ballerina

As an open-source project, Ballerina welcomes contributions from the community.

For more information, go to the [contribution guidelines](https://github.com/ballerina-platform/ballerina-lang/blob/master/CONTRIBUTING.md).

## Code of conduct

All the contributors are encouraged to read the [Ballerina Code of Conduct](https://ballerina.io/code-of-conduct).

## Useful links

- For more information go to the [`trello` package](https://central.ballerina.io/ballerinax/trello/latest).
- For example demonstrations of the usage, go to [Ballerina By Examples](https://ballerina.io/learn/by-example/).
- Chat live with us via our [Discord server](https://discord.gg/ballerinalang).
- Post all technical questions on Stack Overflow with the [#ballerina](https://stackoverflow.com/questions/tagged/ballerina) tag.
61 changes: 57 additions & 4 deletions ballerina/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,70 @@
## Overview

[//]: # (TODO: Add overview mentioning the purpose of the module, supported REST API versions, and other high-level details.)
[Trello](https://trello.com/) is a popular web-based project management and collaboration platform developed by Atlassian, allowing users to organize tasks, projects, and workflows using boards, lists, and cards.

The `ballerinax/trello` package provides APIs to connect and interact with [Trello's RESTful API endpoints](https://developer.atlassian.com/cloud/trello/rest/api-group-actions/), enabling developers to seamlessly manage boards, lists, cards, and other Trello resources.

## Setup guide

[//]: # (TODO: Add detailed steps to obtain credentials and configure the module.)
To use the Trello connector, you must have access to the Trello API through a Trello account and an API key and token generated from it. If you do not have a Trello account, you can sign up for one [here](https://id.atlassian.com/signup). You can generate your Trello API key and token by following the instructions at [Trello API Keys](https://developer.atlassian.com/cloud/trello/guides/rest-api/api-introduction/).

1. Visit https://trello.com/power-ups/admin and create a new powerup

![trello powerup](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-powerups.png)

2. Enter the required details:

- Name of your Power-Up
- Iframe Connector URL (can be a placeholder URL during development)
Click “Create” to create your Power-Up.

![trello powerup form](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-form.png)

3. Navigate to 'API Key' and click on 'Generate'

![generate trello apikey](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-generateKey.png)

Copy and securely store your API Key.

4. Next to the API Key description, there's a link to the token.
Click the link, authorize the Power-Up, and you’ll be redirected to a page displaying your OAuth token.

![get trello Key](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-key.png)

![allow token](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-permission.png)

Copy and securely store the Token.

![trello token](https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-trello/refs/heads/main/docs/setup/resources/trello-token.png)

## Quickstart

[//]: # (TODO: Add a quickstart guide to demonstrate a basic functionality of the module, including sample code snippets.)
To use the Trello connector in your Ballerina application, update the .bal file as follows:

#### Step 1: Import the module

Import the Trello module.

```bash
import ballerinax/trello;
```

#### Step 2: Instantiate a new connector

Create a `Config.toml` file and configure the obtained credentials as follows:

```bash
key = "your_api_key"
token = "your_api_token"
```

#### Step 3: Invoke the connector operation

Now, utilize the available connector operations.

## Examples

The `Trello` connector provides practical examples illustrating usage in various scenarios. Explore these [examples](https://github.com/module-ballerinax-trello/tree/main/examples/), covering the following use cases:

[//]: # (TODO: Add examples)
1. [**Create and Retrieve a List and Cards in Trello**](examples/create_list/) - Create a new list in a specific Trello board and retrieve its details using the list ID.
2. [**Create, Update fetch add label to a Card in Trello**](examples/create_card/) - Create a new card in a Trello list and update the card's name and view it.
Loading
Loading