I'm using a python wrapper for the trello API, and I had a question. How do I go about finding the card ID of a card titled "Pending" in board with ID x? I'm writing a software to add and delete cards through another platform. The method to delete cards requires the card ID and I'm unsure how to find the ID of a card given its name. Could someone tell me how to do this?
def board_cards (id, variables):
board = client.get_board(variables['board_id')
for category in board.list_lists():
for trello_card in category.list_cards() :
if trello_card.name == 'Pending':
card_id = trello_card.id
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.