use strict;
use warnings;
use WebService::Browshot;
use JSON qw(encode_json);

my $client = WebService::Browshot->new(key => $ENV{BROWSHOT_API_KEY});
print encode_json($client->app_create(type => 'webhook', app_id => 'notify', name => 'Capture notifications', config => { url => 'https://example.com/capture-events' })), "\n";
