You are here

public function ProgressTrackerApi::__construct in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/ProgressTracker/ProgressTrackerApi.php \Smartling\ProgressTracker\ProgressTrackerApi::__construct()

BaseApiAbstract constructor.

Parameters

string $projectId:

ClientInterface $client:

LoggerInterface $logger:

string|null $service_url:

Overrides BaseApiAbstract::__construct

File

vendor/smartling/api-sdk-php/src/ProgressTracker/ProgressTrackerApi.php, line 23

Class

ProgressTrackerApi
Class ProgressTrackerApi

Namespace

Smartling\ProgressTracker

Code

public function __construct($projectId, ClientInterface $client, $logger = null, $service_url = null) {
  parent::__construct($projectId, $client, $logger, $service_url);

  // Do not include project_id into base url since
  // progress tracker service has /accounts/{account}/token
  // endpoint without project id.
  $this
    ->setBaseUrl(rtrim($service_url, '/'));
}