CloudConvert\Api::__construct PHP Метод

__construct() публичный Метод

Construct a new wrapper instance
public __construct ( string $api_key, Client $http_client = null )
$api_key string Key of your application. You can get your API Key on https://cloudconvert.com/user/profile
$http_client GuzzleHttp\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;
    }