You are here

protected function Management::setApiClient in Auth0 Single Sign On 8.2

1 call to Management::setApiClient()
Management::__construct in vendor/auth0/auth0-php/src/API/Management.php
Management constructor.

File

vendor/auth0/auth0-php/src/API/Management.php, line 497

Class

Management

Namespace

Auth0\SDK\API

Code

protected function setApiClient() {
  $apiDomain = "https://{$this->domain}";
  $client = new ApiClient([
    'domain' => $apiDomain,
    'basePath' => '/api/v2/',
    'guzzleOptions' => $this->guzzleOptions,
    'returnType' => $this->returnType,
    'headers' => [
      new AuthorizationBearer($this->token),
    ],
  ]);
  $this->apiClient = $client;
}