You are here

public function AcquiaDAM_Client::__construct in Media: Acquia DAM 7

Construct an AcquiaDAM_Client object.

Parameters

\OAuth2\Client $oauth2Client: A pre-configured OAuth2 Client object.

File

src/AcquiaDAM/AcquiaDAM_Client.inc, line 32

Class

AcquiaDAM_Client
Client for making API requests.

Code

public function __construct(OAuth2Client $oauth2Client) {
  $this->oauth2Client = $oauth2Client;
  $this
    ->getToken();
}