Skip to content

Instantly share code, notes, and snippets.

@VGostyuzhov
Last active October 15, 2018 14:15
Show Gist options
  • Save VGostyuzhov/91d428a51cfa8d261863275622cb232e to your computer and use it in GitHub Desktop.
Save VGostyuzhov/91d428a51cfa8d261863275622cb232e to your computer and use it in GitHub Desktop.
Pull list of Board names and status from Trello
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