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

$client = new Browshot(getenv('BROWSHOT_API_KEY'));
echo json_encode($client->app_create(array(
  'type' => 'webhook',
  'app_id' => 'notify',
  'name' => 'Capture notifications',
  'config' => array('url' => 'https://example.com/capture-events')
)), JSON_PRETTY_PRINT), PHP_EOL;
