You are here

protected function AcquiaDAM_Client::getToken in Media: Acquia DAM 7

Get the authroization token information.

Return value

array An array of token information as returned by the OAuth2 client.

2 calls to AcquiaDAM_Client::getToken()
AcquiaDAM_Client::request in src/AcquiaDAM/AcquiaDAM_Client.inc
Make a request to the Acquia DAM API.
AcquiaDAM_Client::__construct in src/AcquiaDAM/AcquiaDAM_Client.inc
Construct an AcquiaDAM_Client object.

File

src/AcquiaDAM/AcquiaDAM_Client.inc, line 63

Class

AcquiaDAM_Client
Client for making API requests.

Code

protected function getToken() {

  // Ensure we are authenticated.
  $this
    ->authenticate(FALSE);
  return $this->oauth2Client
    ->token();
}