public function AcquiaDAM_Client::getUser in Media: Acquia DAM 7
Get the user the client is authenticated as.
Return value
array|false The user information or FALSE on no user.
File
- src/
AcquiaDAM/ AcquiaDAM_Client.inc, line 123
Class
- AcquiaDAM_Client
- Client for making API requests.
Code
public function getUser() {
$user = $this
->request('users/me');
return empty($user['username']) ? FALSE : $user;
}