Trello
Trello is an automated project management tool. It helps you to empower your team to manage any type of project, and workflow. You can add files, and checklists, and can customize the projects. It’s a user-friendly platform for managing projects effortlessly.
- 1 Authorization
- 1.1 Basic Auth
- 2 Trello Connections
- 3 Actions
- 3.1 Get Boards
- 3.2 Create Card
- 3.3 Get Card
Authorization
Basic Auth
The Trello API supports basic OAuth 1.0; as described in the following section from their guide. You can use an OAuth library and the following URLs:
https://trello.com/1/OAuthGetRequestToken
https://trello.com/1/OAuthAuthorizeToken
https://trello.com/1/OAuthGetAccessToken
For more information visit Trello basic Authorization, When a user creates the Trello app, they must be sure to enter Sapper's callback URL - Sapper -as a Callback URL.
To create an OAuth 1.1 connection, You’ll also need your application secret (used to sign your requests). This application secret is involved with a client_id
and client_secret
pair for Trello. To get these, login to Trello and go to https://trello.com/app-key.
The client_id
value will be the Key
value found on this page.
The client_secret
value will be found by clicking the Token
URL found on that page. This will prompt you to give access to the Trello Server Token
application. Granting access will display the value to use.
Once you have an API key and a user's token, you can pass authorization information to Trello in one of three ways:
Query parameters
Authorization
headerPUT/POST body
Query Parameters Authorization
The easiest and quickest way to conduct the authorization to Trello is via query parameters.
You can include a key=
and token=
query parameter in your request.
For instance, here is a simple request passing authorization via query parameters:
Copy1
curl https://api.trello.com/1/members/me?key={{apiKey}}&token={{apiToken}}
Authorization
header
You can also authorization via an Authorization
header in Trello with the format: OAuth oauth_consumer_key="{{apiKey}}", oauth_token="{{apiToken}}"
.
For instance, here is the same request as above, but using an Authorization
header:
Copy1
curl -H "Authorization: OAuth oauth_consumer_key=\"{{apiKey}}\", oauth_token=\"{{apiToken}}\"" https://api.trello.com/1/members/me
PUT/POST Body
If you want to make a PUT or POST request to Trello's API, you may also include the key and token in the request's body:
Copy1
2
3
4
curl -X PUT \
https://api.trello.com/1/cards/5e568d33e9b5e88bb99996d0/name \
-H "Content-Type: application/json" \
-d '{"key": "{{apiKey}}", "token": "{{apiToken}}", "value": "Finish Final Presentation" }'
1/authorize/ Route Options
Key | Valid Values | Description |
---|---|---|
return_url | A valid URL that the token should be returned to. | If the token is being passed by fragment, this is where the user will be redirected after authorization. If the token is being passed by postMessage, this will be used as the |
callback_method |
| Defines how the token is returned to you. Generally, |
scope string | Comma-separated list of one or more of | Read: reading of boards, organizations, etc. on behalf of the user Write: writing of boards, organizations, etc. on behalf of the user Account: read member email, writing of member info, and marking notifications read |
expiration |
| When the token should expire. |
name | Name of the application. | Displayed during the authorization process |
key | Valid Trello API key. | Used to generate the user's token. |
response_type |
| The |
Trello Connections
Trello Basic Connection
Input | Key | Description | Example |
Select Application | application | Select Trello application |
|
Connection Mode | Mode | Mention the mode of connection | Custom |
Connection type | connection type | Select the type of connection. |
|
Rest Connection Type | Rest Connection Type | Select the Basic connection type |
|
Connection Name | name | Provide a name for the connection. |
|
Connection Description | description | Provide a description for the connection. |
|
Host Name | host | Provide a string value for the URL of user's Trello account. | |
Username | username | Provide a valid username for the given Trello account user want to connect. | exampleUser |
Password | password | Provide a password to authenticate all requests with. Cloud users need to generate an API token for this value. | exampleSecurePassword |
Header Field | header | Provide the path of the endpoint for authentication. |
|
Header Prefix | header prefix | Select the header prefix - |
|
Actions
Get Boards
Get boards | key: getBoard
Input | Key | Notes | Example |
Token | token | The token is associated with API key, that can be used to read and write your entire Trello account. This Token is needs to be secret. | *************** |
Create Card
Create card| key: createCard
Input | Key | Notes | Example |
Token | token | The token is associated with API key, that can be used to read and write your entire Trello account. This Token is needs to be secret. | *************** |
ID List | idList | Provide the list of the ID’s for generating the card. |
|
Name | name | Provide the name for the card generation. | Sample |
Description | description | Add a suitable description for the generating the card. | Sample description |
Position | position | Mention the position of the card. |
|
Get Card
Get card| key: getCard
Input | Key | Notes | Example |
Token | token | The token is associated with API key, that can be used to read and write your entire Trello account. This Token is needs to be secret. | *************** |
ID | id | Every Trello card link has a unique ID | wIia0909 |