No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

WebHook handler with Python and SashiDo

SashuDo supports Parse Server WebHooks :) With this, you can now specify any URL to receive a POST in response to triggers like beforeSave and afterSave on objects, as well as when a Cloud Function is called. You now have the freedom to write code in whatever language you want. As long as you have a server running it, your Cloud Code can integrate with it.

With this example we want to show you a simple implementation of webhook handler with Python.


Run it locally

1. Clone this project on you computer.

git clone
cd webhook-handler-example/

2. Install Flask framework

pip install Flask

3. Run the app

With the following command you'll run the application server on your computer.


If everything is okey, the output of the command above should be something like:

* Running on (Press CTRL+C to quit)

3. Access your webhook from SashiDo.

If you want to access your webhook from SashiDo you have to install and use ngrok. Ngrok is secure tunnels to localhost. In other words ... if you want to expose a local server behind a NAT or firewall to the internet.

Here you can find more info how ngrok works:

In another bash shell/terminal run the follwoing command:

ngrok http 8080

If everything is okey, the output of the command above should be something like:

ngrok by @inconshreveable                                                                                                                     (Ctrl+C to quit)

Session Status                online
Version                       2.1.14
Region                        United States (us)
Web Interface       
Forwarding           -> localhost:8080
Forwarding           -> localhost:8080

Connections                   ttl     opn     rt1     rt5     p50     p90
                              0       0       0.00    0.00    0.00    0.0

After that just use as a webhook URL in SashiDo.


That's it! Happy coding!