DEV Community

Evan Lin
Evan Lin

Posted on • Originally published at evanlin.com on

Golang Notes: Trello Application

title: [Learning Notes][Golang] Related Notes on Trello Applications
published: false
date: 2021-07-27 00:00:00 UTC
tags: 
canonical_url: http://www.evanlin.com/go-trello/
---

![](https://developer.atlassian.com/cloud/trello/guides/rest-api/images/rest-api-auth.png)

## Trello API Application:

A few things to quickly record, if you want to use Golang to write Trello tools (according to [Trello API Introduction](https://developer.atlassian.com/cloud/trello/guides/rest-api/api-introduction/)):

- Apply for a Trello API Key
  - [Trello API Key](https://trello.com/app-key)
- Apply for a Trello Token

Enter fullscreen mode Exit fullscreen mode

https://trello.com/1/authorize?expiration=never&scope=read,write,account&response_type=token&name=Server%20Token&key=YOUR_API_KEY


- 

Golang Package Used

  - https://github.com/adlio/trello
- 

How to get the Trello Board ID

  - 

https://trello.com/b/aaaaaaa/board\_name.json.

  - 

Where `aaaaaaa` is the Board ID (name, displayed on the webpage)

  - 

`board_name`: is the original Board name

  - 

Through this method, you can get all the names related to the Board.

    - 

Enter fullscreen mode Exit fullscreen mode

{"id":"xxxxx","name":"board_name","desc":"","descData":null,"closed":false,"dateClosed":null, .....}


### Related Example Code:
<script src="https://gist.github.com/kkdai/9ab078ccc9db26c7fa29bac79a82620d.js"></script>
## Related Articles:

- [Trello API Key](https://trello.com/app-key)
- [Authorizing With Trello’s REST API](https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/)
- [Trello API Introduction](https://developer.atlassian.com/cloud/trello/guides/rest-api/api-introduction/)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)