-
-
Save anonymous/e099c732c7312623b45d to your computer and use it in GitHub Desktop.
A little example showing caching of request across multiple invocations of the Trollop API.
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
from trollop import TrelloConnection | |
import uuid | |
def getCards(): | |
conn = TrelloConnection('yourKey', '') | |
testList = conn.get_list('51c4bbfec35aaed501000c38') | |
for card in testList.cards: | |
print card.name | |
def addCard(): | |
conn = TrelloConnection('yourKey', 'yourToken') | |
testList = conn.get_list('51c4bbfec35aaed501000c38') | |
testList.add_card('Hello this is a test ' + str(uuid.uuid4()), 'And this is the description') | |
print "First call to list the cards:" | |
getCards() | |
print "\n" | |
addCard() | |
print "Second call to list the cards:" | |
getCards() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment