You are here

public function Client::setToken in Media: Acquia DAM 8

Set the internal auth token.

Parameters

string $token: The token to set.

int $token_expiry: The time when the token expires.

string $refresh_token: The refresh token to set.

File

src/Client.php, line 233

Class

Client
Overridden implementation of the cweagans php-webdam-client.

Namespace

Drupal\media_acquiadam

Code

public function setToken($token, $token_expiry, $refresh_token = NULL) {
  parent::setToken($token, $token_expiry);
  $this->refreshToken = $refresh_token;
}