# Trello Tasks


Tasks for interacting with Trello Note, to authenticate with the Trello API use upstream PrefectSecret tasks to pass in '"TRELLO_API_KEY"' (see https://trello.com/app-key while logged in) and '"TRELLO_SERVER_TOKEN"' (click the 'Token' link on https://trello.com/app-key to generate)

# CreateCard

class

prefect.tasks.trello.trello.CreateCard

(list_id=None, card_name=None, card_info=None, **kwargs)[source]

Task for creating a card on Trello, given the list to add it to.

Args:

  • list_id (str): the id of the list to add the new item.
  • card_name (str, optional): the title of the card to add
  • card_info (str, optional): the description for the back of the card
  • **kwargs (dict, optional): additional arguments to pass to the Task constructor

methods:                                                                                                                                                       

prefect.tasks.trello.trello.CreateCard.run

(list_id=None, card_name=None, card_info=None, trello_api_key="TRELLO_API_KEY", trello_server_token="TRELLO_SERVER_TOKEN")[source]

Task run method.

Args:

  • list_id (str): the id of the list to add the new item.
  • card_name (str, optional): the title of the card to add
  • card_info (str, optional): the description for the back of the card
  • trello_api_key (str): the name of the Prefect Secret where you've stored your API key
  • trello_server_token (str): the name of the Prefect Secret where you've stored your server token
Returns:
  • Status code of POST request (200 for success)



This documentation was auto-generated from commit bd9182e
on July 31, 2024 at 18:02 UTC