You are here

public function ApiClient::whoAmI in Rocket.Chat 8

Same name and namespace in other branches
  1. 8.2 modules/rocket_chat_api/src/RocketChat/ApiClient.php \Drupal\rocket_chat_api\RocketChat\ApiClient::whoAmI()

Retrieve the information about myself, the 'me' command.

Return value

array Result array.

File

modules/rocket_chat_api/src/RocketChat/ApiClient.php, line 289

Class

ApiClient
Class ApiClient.

Namespace

Drupal\rocket_chat_api\RocketChat

Code

public function whoAmI() {
  return $this
    ->getFromRocketChat('me');
}