public function SmartlingApi::__construct in TMGMT Translator Smartling 8
Creates SmartlingApi instance.
Parameters
string $apiKey: Api Key string.
string $projectId: Project ID string.
\GuzzleHttp\ClientInterface $http_client: Instance of Guzzle http client.
string $base_service_url: Url for Smartling translation service.
File
- src/
Smartling/ SmartlingApi.php, line 52
Class
Namespace
Drupal\tmgmt_smartling\SmartlingCode
public function __construct($apiKey, $projectId, ClientInterface $http_client, $base_service_url = null) {
$this->apiKey = $apiKey;
$this->projectId = $projectId;
$this->httpClient = $http_client;
$this->baseUrl = rtrim($base_service_url ?: self::DEFAULT_SERVICE_URL, '/');
}