IdobataIncommingWebhook
This is simple webhook wrapper for idobata.io.
only supports custum webhook.
Installation
Add this line to your application's Gemfile:
gem 'idobata_incomming_webhook'
And then execute:
$ bundle
Or install it yourself as:
$ gem install idobata_incomming_webhook
Usage
You have to set your IDOBATA_WEBHOOK_URI as environment variable.
require "idobata_incomming_webhook"
# if you would send a simple string message, use `#submit`.
message = "Hello, idobata.io!"
IdobataIncommingWebhook.submit(message)
# if you would send a html message, use `#submit_html`.
html_string = "<h1>Hello, idobata.io!</h1>"
IdobataIncommingWebhook.submit_html(html_string)
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/mmyoji/idobata_incomming_webhook. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.