public static function BatchApi::create in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 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
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.
File
- vendor/
smartling/ api-sdk-php/ src/ Batch/ BatchApi.php, line 32
Class
- BatchApi
- Class JobsFacadeApi
Namespace
Smartling\BatchCode
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;
}