Mergent
Search…
⌃K
Links

Example: Ruby w/ Sinatra

Creating a task

Use the Ruby gem! See Ruby for details.

Receiving a task webhook

require "sinatra"
post "/webhook" do
payload = request.body.read
# Perform whatever action required by your task
puts payload
status 200
end