You are here

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

Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/AuthApi/AuthTokenProvider.php \Smartling\AuthApi\AuthTokenProvider::create()
  2. 8.2 api-sdk-php/src/AuthApi/AuthTokenProvider.php \Smartling\AuthApi\AuthTokenProvider::create()
  3. 8.2 vendor/smartling/api-sdk-php/src/AuthApi/AuthTokenProvider.php \Smartling\AuthApi\AuthTokenProvider::create()

Creates and returns instance of AuthTokenProvider

Parameters

string $userIdentifier:

string $secretKey:

LoggerInterface $logger:

Return value

AuthTokenProvider

17 calls to AuthTokenProvider::create()
audit-log-example.php in vendor/smartling/api-sdk-php/examples/audit-log-example.php
AuditLogApiFunctionalTest::setUp in vendor/smartling/api-sdk-php/tests/functional/AuditLogApiFunctionalTest.php
batch-example.php in vendor/smartling/api-sdk-php/examples/batch-example.php
context-example.php in vendor/smartling/api-sdk-php/examples/context-example.php
ContextApiFunctionalTest::setUp in vendor/smartling/api-sdk-php/tests/functional/ContextApiFunctionalTest.php
Test mixture.

... See full list

File

vendor/smartling/api-sdk-php/src/AuthApi/AuthTokenProvider.php, line 103

Class

AuthTokenProvider
Class AuthTokenProvider @package Smartling\AuthApi

Namespace

Smartling\AuthApi

Code

public static function create($userIdentifier, $secretKey, $logger = null) {
  $client = self::initializeHttpClient(self::ENDPOINT_URL);
  return new self($userIdentifier, $secretKey, $client, $logger);
}