PHP code example of devhun / wideshot-api-client
1. Go to this page and download the library: Download devhun/wideshot-api-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
devhun / wideshot-api-client example snippets
use Wideshot\WideshotClient;
use Wideshot\Adapter\GuzzleHttpAdapter;
// Using Guzzle 6...
$client = new WideshotClient(
new GuzzleHttpAdapter('your-api-key')
);
$result = $client->result()->all();
var_export($result);
use Wideshot\WideshotClient;
use Wideshot\Adapter\CurlAdapter;
// Using regular CURL, courtesy of 'malc0mn'
$client = new WideshotClient(
new CurlAdapter('your-api-key')
);
$result = $client->result()->all();
var_export($result);