class_docstr: A class for handling connections and interactions with the Rocket Chat API.
  
  Attributes:
      username (str): Rocket Chat username to use for authentication.
      password (str): Rocket Chat username to use for authentication.
      auth_token (str): Rocket Chat authorization token to use for all API requests.
      auth_user_id (str): Rocket Chat user ID to associate with all API requests
      domain (str): Path to Rocket Chat domain to use (e.g. https://mindsdb.rocket.chat).
      client (RocketChatClient): The `RocketChatClient` object for interacting with the Rocket Chat API.
      is_connected (bool): Whether or not the API client is connected to the Rocket Chat API.
class_docstr_tok: ["A","class","for","handling","connections","and","interactions","with","the","Rocket","Chat","API",".","Attributes",":","username","(","str",")",":","Rocket","Chat","username","to","use","for","authentication",".","password","(","str",")",":","Rocket","Chat","username","to","use","for","authentication",".","auth_token","(","str",")",":","Rocket","Chat","authorization","token","to","use","for","all","API","requests",".","auth_user_id","(","str",")",":","Rocket","Chat","user","ID","to","associate","with","all","API","requests","domain","(","str",")",":","Path","to","Rocket","Chat","domain","to","use","(","e.g",".","https",":","\/\/mindsdb.rocket.chat",")",".","client","(","RocketChatClient",")",":","The","`","RocketChatClient","`","object","for","interacting","with","the","Rocket","Chat","API",".","is_connected","(","bool",")",":","Whether","or","not","the","API","client","is","connected","to","the","Rocket","Chat","API","."]
docstr: Calls the Rocket Chat API method with the given params.
  
  Returns results as a pandas DataFrame.
  
  Args:
      method_name (str): Method name to call
      params (Dict): Params to pass to the API call
docstr_tok: ["Calls","the","Rocket","Chat","API","method","with","the","given","params",".","Returns","results","as","a","pandas","DataFrame",".","Args",":","method_name","(","str",")",":","Method","name","to","call","params","(","Dict",")",":","Params","to","pass","to","the","API","call"]
code: def call_api(
      self, method_name: str = None, *args, **kwargs
  ) -> pd.DataFrame:
      """Calls the Rocket Chat API method with the given params.
  
      Returns results as a pandas DataFrame.
  
      Args:
          method_name (str): Method name to call
          params (Dict): Params to pass to the API call
      """
      client = self.connect()
  
      method = getattr(client, method_name)
  
      messages_response = method(*args, **kwargs)
  
      if not messages_response.ok:
          messages_response.raise_for_status()
      return messages_response.json()
  
file_path: mindsdb/mindsdb/integrations/handlers/rocket_chat_handler/rocket_chat_handler.py
imports: import pandas
  from typing import Dict, List
  from rocketchat_API.rocketchat import RocketChat
  from mindsdb.integrations.handlers.rocket_chat_handler.rocket_chat_tables import ChannelMessagesTable, ChannelsTable, DirectsTable, DirectMessagesTable, UsersTable
  from mindsdb.integrations.libs.api_handler import APIChatHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse
  from mindsdb.utilities import log
  from mindsdb_sql import parse_sql
label_desc: Use image node_id 7 for calling the RocketChatHandler obj's underlying member method code with example usage: obj.call_api(method_name) and returns: messages_response