-
Start ngrok
./ngrok http 4567 (snip) Forwarding https://e019d1e10024.ngrok.io -> http://localhost:4567 (snip)
-
Go to project setting on Autify
-
Click
Add
on Webhook section -
Set
URL
to the value obtained in #1. -
Set
Secret
(Note: Optional) -
Clone the repository
git clone git@github.com:autifyhq/autify-demo-outgoing-webhook.git cd autify-demo-outgoing-webhook
-
Build an image from a Dockerfile
docker build -t outgoing-webhook-demo --build-arg RUBY_VERSION=2.6.5-alpine3.10 --build-arg BUNDLER_VERSION=2.0.2 .
-
Start a server
# Without Secret docker run -p 4567:80 outgoing-webhook-demo # With Secret docker run -p 4567:80 -e SECRET_TOKEN=<SECRET from \#5> outgoing-webhook-demo
-
Go to project setting on Autify
-
Set
URL
to the value obtained in #1. -
Set
Secret
to the value obtained in #5 if you added. -
Run a scenario on Autify
-
You can get JSON after finished a test.
Submit all changes directly to the master branch.
- Fork the repository and create your branch from master.
- Add changes
- Format your code with rufo
docker run -v /path/to/autify-demo-outgoing-webhook:/usr/src/app -it outgoing-webhook-demo rufo .
- Create a pull request.
autify-demo-outgoing-webhook © Autify Engineers. Released under the MIT License.
Authored and maintained by Autify Engineers with help from contributors.