public function AcquiaDAM_Client::isAuthenticated in Media: Acquia DAM 7
Check if the client is authenticated.
Return value
bool TRUE if authenticated, FALSE otherwise.
File
- src/
AcquiaDAM/ AcquiaDAM_Client.inc, line 100
Class
- AcquiaDAM_Client
- Client for making API requests.
Code
public function isAuthenticated() {
$token = $this->oauth2Client
->token();
return !empty($token['access_token']);
}