require "browshot"
require "json"

client = Browshot.new(ENV.fetch("BROWSHOT_API_KEY"))
puts JSON.pretty_generate(client.app_create({
  "type" => "aws_s3",
  "app_id" => "archive-acl",
  "name" => "Screenshot archive with Browshot ACL",
  "config" => {
    "bucket" => "your-capture-bucket",
    "region" => "us-east-1",
    "pathTemplate" => "captures/{domain}/{id}-{shot}.png"
  }
}))
