import json
import os
from browshot import BrowshotClient

client = BrowshotClient(os.environ["BROWSHOT_API_KEY"])
print(json.dumps(client.app_create({
  "type": "webhook",
  "app_id": "notify",
  "name": "Capture notifications",
  "config": { "url": "https://example.com/capture-events" }
}), indent=2))
