A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
import logging | |
import requests | |
# Learn how to get your TRELLO_APP_KEY and TOKEN information! https://trello.com/docs/ | |
def archive_all_done_cards(list_id="exampleexampleexample"): | |
"""Archive all cards in trello 'done' list""" | |
# python trello package doesn't support this so using requests the old fashioned way | |
try: | |
r = requests.post(url="https://api.trello.com/1/lists/%s/archiveAllCards?key=%s&token=%s" %(list_id, TRELLO_APP_KEY, TOKEN)) |