public function ApiClient::getFromRocketChat 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::getFromRocketChat()
Low Level GET request to the rocketchat.
Parameters
string $method: The method to call (so the part after '/api/v1/').
array $options: Optional Data payload. for HTTP_POST calls.
Return value
array Result array.
7 calls to ApiClient::getFromRocketChat()
- ApiClient::channelsHistory in modules/
rocket_chat_api/ src/ RocketChat/ ApiClient.php - Retrieve the message history information.
- ApiClient::channelsInfo in modules/
rocket_chat_api/ src/ RocketChat/ ApiClient.php - Retrieve User information.
- ApiClient::channelsList in modules/
rocket_chat_api/ src/ RocketChat/ ApiClient.php - Retrieve User information.
- ApiClient::info in modules/
rocket_chat_api/ src/ RocketChat/ ApiClient.php - Retrieve the Rocket chat status info.
- ApiClient::usersInfo in modules/
rocket_chat_api/ src/ RocketChat/ ApiClient.php - Retrieve User information.
File
- modules/
rocket_chat_api/ src/ RocketChat/ ApiClient.php, line 304
Class
- ApiClient
- Class ApiClient.
Namespace
Drupal\rocket_chat_api\RocketChatCode
public function getFromRocketChat($method = "info", array $options = []) {
return $this
->sendToRocketChat(ApiClient::HTTP_GET, $method, $options);
}