This one is one of the most tedious to set up and get working. We now also rely on the Trello scripts available as part of the `python-zulip-api/zulip` API package to make the setup process easier.
1.6 KiB
Get Zulip notifications from your Trello boards!
-
{!create-stream.md!}
-
{!create-bot-construct-url-indented.md!}
-
We will first collect three items: a Board ID, an API Key, and a User Token.
-
Board ID: Go to your Trello board. The URL should look like
https://trello.com/b/<BOARD_ID>/<BOARD_NAME>. Note down the<BOARD_ID>. -
API Key: Go to https://trello.com/1/appkey/generate. Note down the key listed under Developer API Keys.
-
User Token: Go to https://trello.com/1/appkey/generate. Under Developer API Keys, click on the Token link. Click on Allow. Note down the token generated.
-
-
{!download-python-bindings.md!}
-
Open
/usr/local/share/zulip/integrations/trello/zulip_trello_config.pywith your favorite editor and change the following lines to specify the Trello API Key, User Token, and the webhook URL constructed above:TRELLO_API_KEY = "<Trello API key generated above>" TRELLO_TOKEN = "<Trello User Token generated above>" ZULIP_WEBHOOK_URL = "<URL constructed above>" -
Go to the
/usr/local/share/zulip/integrations/trello/directory and run thezulip_trello.pyscript, like so:python zulip_trello.py <trello_board_name> <trello_board_id>Replace
<trello_board_nameand<trello_board_idwith the Trello board's name and Board ID, respectively.
!!! tip "" To learn more, see Trello's webhooks documentation.
{!congrats.md!}
