<?php
require 'vendor/autoload.php';

$client = new Browshot(getenv('BROWSHOT_API_KEY'));
$html = $client->screenshot_html(1103982291, array());
if (!is_string($html) || $html === '') {
    throw new RuntimeException('HTML download failed');
}
file_put_contents('capture.html', $html);
