Add tests for screenshots
This commit is contained in:
parent
c410e344a0
commit
f38235561f
3 changed files with 49 additions and 10 deletions
|
@ -41,7 +41,7 @@ class SaveScreenshot implements ShouldQueue
|
|||
// A normal Guzzle client
|
||||
$client = resolve(Client::class);
|
||||
// A Guzzle client with a custom Middleware to retry the CloudConvert API requests
|
||||
$retryClient = resolve('RetryClient');
|
||||
$retryClient = resolve('RetryGuzzle');
|
||||
|
||||
// First request that CloudConvert takes a screenshot of the URL
|
||||
$takeScreenshotJobResponse = $client->request('POST', 'https://api.cloudconvert.com/v2/capture-website', [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue