Last active
October 15, 2018 14:15
-
-
Save VGostyuzhov/91d428a51cfa8d261863275622cb232e to your computer and use it in GitHub Desktop.
Pull list of Board names and status from Trello
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
import json | |
import requests | |
API_KEY = '' | |
API_TOKEN = '' | |
url = 'https://api.trello.com/1/members/me/boards?key={}&token={}'.format(API_KEY, API_TOKEN) | |
response = requests.get(url) | |
if response.status_code == 200: | |
boards = json.loads(response.content) | |
for board in boards: | |
print('Board name: {}.\nClosed: {}.\n'.format(board['name'], board['closed'])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment