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

$client = new Browshot(getenv('BROWSHOT_API_KEY'));
echo json_encode($client->app_create(array(
  'type' => 'aws_s3',
  'app_id' => 'archive-acl',
  'name' => 'Screenshot archive with Browshot ACL',
  'config' => array(
    'bucket' => 'your-capture-bucket',
    'region' => 'us-east-1',
    'pathTemplate' => 'captures/{domain}/{id}-{shot}.png'
  )
)), JSON_PRETTY_PRINT), PHP_EOL;
