hook-echo

Version, currently main branch1 version
  • main branchlatestJun 24, 2021

github.com/flowplayer/webhook-echo-demo

a simple echo server to showcase how to use flowplayer webhooks

1 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  hook-echo:
    github: flowplayer/webhook-echo-demo
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
1.0.0
License
MIT
Author
Benjamin Clos
Target
  • hook-echo from src/hook-echo.cr

Dependencies

Runtime Dependencies

  • kemal*github: kemalcr/kemal

README

Hook Echo

this is a simple echo server written in Crystal to demonstrate how to:

  1. accept flowplayer webhooks via HTTP
  2. properly verify that the webhook signature is correct

Setup

  1. install crystal
  2. clone this repo
  3. set up a webhook delivery endpoint using something like ngrok so it is publicly reachable
  4. in the project directory run crystal run -d src/hook-echo.cr
  5. spin up your ngrok endpoint binding port 8080
  6. watch the events come in

Contributing

  1. Fork it (https://github.com/flowplayer/hook-echo/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors