Skip to content
php
<?php
$client = new Client();
$headers = [
  'Authorization' => 'Bearer <YOUR API KEY>',
  'Content-Type' => 'application/json'
];
$body = '{
  "doppio": {
    "webhook": {
      "url": "https://my-url.com/callback",
      "method": "POST"
    }
  },
  "page": {
    "screenshot": {
      "fullPage": true,
      "type": "webp"
    },
    "goto": {
      "url": "https://www.spacejam.com/1996"
    }
  }
}';
$request = new Request('POST', 'https://api.doppio.sh/v1/render/screenshot/async', $headers, $body);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();

All rights reserved