python - Trello API ~ simply getting the contents of a list? -
i trying contents of list on board created understand things work flow.
the api seems quite complex, , have been @ hours. have api key, secret key.
i tried following docs: https://api.trello.com/1/lists/4eea4ffc91e31d174600004a/cards?key=[application_key]&token=[optional_auth_token]
however, not sure these letters/numbers coming from: 4eea4ffc91e31d174600004a
.
i read following page: https://developers.trello.com/apis (which gave me link url above), there no info on how 4eea4ffc91e31d174600004a
.
i want visit url gives me json or of vein, contents of list (e.g. cards + names). can visit link programmatically , analysis.
edit: using trello developer sandbox: https://developers.trello.com/sandbox/ found id of list, substituted 4eea4ffc91e31d174600004a
, following: taco says “invalid token”, know? he's dog.
i used secret key token, guess that's not token. question boils down how can token?
thanks
so full answer is:
to cards in list, 3 things required:
- api key
- list id
- token
(secret key isn't needed anywhere)
to list id, simplest way use developer sandbox https://developers.trello.com/sandbox/ hit 'get lists' + 'execute' , obtain id of list of interest.
note if have multiple boards, need specify board id here: trello.get('/boards/[board_id]/lists', success, error);
. can board id hitting 'get boards' + 'execute', looking id of interest.
to token, need go here: https://trello.com/1/connect?key=[application_key]&name=myapp&response_type=token
then can make call:
https://api.trello.com/1/lists/[list_id]/cards?key=[application_key]&token=[optional_auth_token]
Comments
Post a Comment