Created
July 29, 2021 05:39
-
-
Save kkdai/9ab078ccc9db26c7fa29bac79a82620d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"github.com/adlio/trello" | |
) | |
func main() { | |
client := trello.NewClient(os.Getenv("ApiKey"), os.Getenv("Token")) | |
board, err := client.GetBoard(os.Getenv("Board"), trello.Defaults()) | |
if err != nil { | |
// Handle error | |
panic(err) | |
} | |
lists, err := board.GetLists(trello.Defaults()) | |
if err != nil { | |
// Handle error | |
panic(err) | |
} | |
for k, l := range lists { | |
fmt.Println(k, l.Name) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment