Skip to content

Instantly share code, notes, and snippets.

@luaybs
Last active March 1, 2021 19:26
Show Gist options
  • Save luaybs/ea623ea38caa2a689308ea5bbd799956 to your computer and use it in GitHub Desktop.
Save luaybs/ea623ea38caa2a689308ea5bbd799956 to your computer and use it in GitHub Desktop.
  1. Add the gem to your Gemfile
gem 'webhook_manager'
  1. In your terminal:
$ bundle install
  1. Initialize your class
api = WebhookManager::Webhook.new('https://app.hooky.me/api/v1/webhook_events/trigger', 'YOUR_API_KEY')
  1. Send your first webhook!
api.trigger!(event_name: "this.is.a.webhook", payload: {hello: "world"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment