You are here

public static function BatchApi::create in TMGMT Translator Smartling 8.4

Same name and namespace in other branches
  1. 8.3 vendor/smartling/api-sdk-php/src/Batch/BatchApi.php \Smartling\Batch\BatchApi::create()

Instantiates Jobs Facade API object.

Parameters

AuthApiInterface $authProvider:

string $projectId:

LoggerInterface $logger:

Return value

BatchApi

6 calls to BatchApi::create()
createBatchDemo in vendor/smartling/api-sdk-php/examples/batch-example.php
executeBatchDemo in vendor/smartling/api-sdk-php/examples/batch-example.php
getBatchStatusDemo in vendor/smartling/api-sdk-php/examples/batch-example.php
listBatchesDemo in vendor/smartling/api-sdk-php/examples/batch-example.php
SmartlingApiFactory::create in src/Smartling/SmartlingApiFactory.php
Returns API object as a service.

... See full list

File

vendor/smartling/api-sdk-php/src/Batch/BatchApi.php, line 32

Class

BatchApi
Class JobsFacadeApi

Namespace

Smartling\Batch

Code

public static function create(AuthApiInterface $authProvider, $projectId, $logger = null) {
  $client = self::initializeHttpClient(self::ENDPOINT_URL);
  $instance = new self($projectId, $client, $logger, self::ENDPOINT_URL);
  $instance
    ->setAuth($authProvider);
  return $instance;
}