require "browshot"
require "json"

client = Browshot.new(ENV.fetch("BROWSHOT_API_KEY"))
puts JSON.pretty_generate(client.app_create({
  "type" => "webhook",
  "app_id" => "notify",
  "name" => "Capture notifications",
  "config" => { "url" => "https://example.com/capture-events" }
}))
