Skip to content

Latest commit

 

History

History

webhooks

Folders and files

README.md

Webhooks for Quip

Simple (state-less) server that serves as a Webhook endpoint and forwards messages to Quip threads. Currently supported services are:

An instance is running at http://quip-webhooks.appspot.com.

Caveats

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.

Running Locally

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).

Deploying to App Engine

Install the Google Cloud CLI, then run:

gcloud app deploy --project <your-project-id> app.yaml