Simple (state-less) server that serves as a Webhook endpoint and forwards messages to Quip threads. Currently supported services are:
- GitHub: Notifications of commits.
- Crashlytics: Notifications of issues.
- PagerDuty: Notifications of new and resolved incidents.
An instance is running at http://quip-webhooks.appspot.com.
API access tokens are embedded in hook URLs. If you generate a new access token, you will need to edit the hook URL at its registered service.
The sample runs on the App Engine standard python312 runtime and uses Flask. To run it locally with Python 3.12:
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
python main.py
The server listens on http://localhost:8080.
To test changes without having to deploy, you can install ngrok which tunnels a localhost port such that it can be accessed from the Internet. Run:
ngrok 8080
And you'll be given an URL like 27841f20.ngrok.com which you can use with GitHub, Crashlytics, etc. You can also visit http://localhost:4040/ to see all tunneled requests (and to replay them).
Install the Google Cloud CLI, then run:
gcloud app deploy --project <your-project-id> app.yaml