python-zulip-api/zulip/integrations/trello/zulip_trello_config.py
JazZ 2f4b276799 Add Trello integration script
This is a small Python script to create Trello Webhooks for Zulip.

It builds and sends the Trello API requests required to create the
Trello webhook.
2018-03-29 15:24:14 -04:00

53 lines
1.9 KiB
Python

# -*- coding: utf-8 -*-
#
# Copyright © 2014 Zulip, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
### REQUIRED CONFIGURATION ###
# It needs some API KEY and Token (from Zulip and Trello)
# For more information, please visit https://zulipchat.com/integrations/doc/trello
# BOT_API_KEY
#
# In Zulip, create a new bot for *incomming Webhook*.
# It will generate an API KEY
BOT_API_KEY = ""
# TRELLO_API_KEY
#
# Visit https://trello.com/1/appkey/generate to generate
# an APPLICATION_KEY (needs to be logged into Trello)
TRELLO_API_KEY = ""
# TRELLO_TOKEN
#
# To generate a Trello read access Token, visit (needs to be logged into Trello)
# https://trello.com/1/authorize?key=<TRELLO_API_KEY>&name=Issue+Manager&expiration=never&response_type=token&scope=read
#
# Take care to replace <TRELLO_API_KEY> with the appropriate value
TRELLO_TOKEN = ""
# ZULIP_HOST
#
# The hostname of your Zulip application
ZULIP_HOST = ""