public function ApiClient::channelsInfo in Rocket.Chat 8
Same name and namespace in other branches
- 8.2 modules/rocket_chat_api/src/RocketChat/ApiClient.php \Drupal\rocket_chat_api\RocketChat\ApiClient::channelsInfo()
Retrieve User information.
Parameters
string $roomId: The roomId to look up.
string $roomName: The room name to look up.
Return value
array Result array
File
- modules/
rocket_chat_api/ src/ RocketChat/ ApiClient.php, line 470
Class
- ApiClient
- Class ApiClient.
Namespace
Drupal\rocket_chat_api\RocketChatCode
public function channelsInfo($roomId = NULL, $roomName = NULL) {
$req = [];
$req['query'] = [];
if (!empty($roomId)) {
$req['query']['roomId'] = $roomId;
}
if (!empty($roomName)) {
$req['query']['roomName'] = $roomName;
}
return $this
->getFromRocketChat('channels.info', $req);
}