require "browshot"

client = Browshot.new(ENV.fetch("BROWSHOT_API_KEY"))
file = client.screenshot_thumbnail_file(1103982291, "thumbnail.png", { "width" => 640 })
raise "Download failed" if file.to_s.empty?
puts file
