require "browshot"
require "json"

client = Browshot.new(ENV.fetch("BROWSHOT_API_KEY"))
puts JSON.pretty_generate(client.screenshot_create("https://example.com/", {
  "browser" => "chrome",
  "country" => "fr",
  "screen_width" => 1440,
  "screen_height" => 900
}))
