public function ApiClient::channelsInfo in Rocket.Chat 8.2
Same name and namespace in other branches
- 8 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 501
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);
}