You are here

public static function JobsApi::create in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/Jobs/JobsApi.php \Smartling\Jobs\JobsApi::create()

Instantiates Jobs API object.

Parameters

AuthApiInterface $authProvider:

string $projectId:

LoggerInterface $logger:

Return value

JobsApi

10 calls to JobsApi::create()
addFileToJobDemo in vendor/smartling/api-sdk-php/examples/jobs-example.php
authorizeJobDemo in vendor/smartling/api-sdk-php/examples/jobs-example.php
cancelJobDemo in vendor/smartling/api-sdk-php/examples/jobs-example.php
createJobDemo in vendor/smartling/api-sdk-php/examples/jobs-example.php
getJobDemo in vendor/smartling/api-sdk-php/examples/jobs-example.php

... See full list

File

vendor/smartling/api-sdk-php/src/Jobs/JobsApi.php, line 85

Class

JobsApi
Class JobsApi

Namespace

Smartling\Jobs

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;
}