Skip to content

autifyhq/autify-demo-outgoing-webhook

Repository files navigation

autify-demo-outgoing-webhook

CI

Prerequisites

Usage

  1. Start ngrok

    ./ngrok http 4567
    
    (snip)
    Forwarding                    https://e019d1e10024.ngrok.io -> http://localhost:4567
    (snip)
  2. Go to project setting on Autify

  3. Click Add on Webhook section

  4. Set URL to the value obtained in #1.

  5. Set Secret (Note: Optional)

  6. Clone the repository

    git clone [email protected]:autifyhq/autify-demo-outgoing-webhook.git
    cd autify-demo-outgoing-webhook
  7. 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 .
  8. 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
  9. Go to project setting on Autify

  10. Set URL to the value obtained in #1.

  11. Set Secret to the value obtained in #5 if you added.

  12. Run a scenario on Autify

  13. You can get JSON after finished a test.

Development

Submit all changes directly to the master branch.

  1. Fork the repository and create your branch from master.
  2. Add changes
  3. Format your code with rufo docker run -v /path/to/autify-demo-outgoing-webhook:/usr/src/app -it outgoing-webhook-demo rufo .
  4. Create a pull request.

License

autify-demo-outgoing-webhook © Autify Engineers. Released under the MIT License.
Authored and maintained by Autify Engineers with help from contributors.

About

Try Autify Outgoing Webhook quickly.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published