public __construct ( string $api_key, |
||
$api_key | string | Key of your application. You can get your API Key on https://cloudconvert.com/user/profile |
$http_client | Instance of http client |
public function __construct($api_key, GuzzleClient $http_client = null)
{
if (!isset($api_key)) {
throw new Exceptions\InvalidParameterException("API Key parameter is empty");
}
if (!isset($http_client)) {
$http_client = new GuzzleClient();
}
$this->api_key = $api_key;
$this->http_client = $http_client;
}