module Zoom::Actions::IM::Chat

Public Instance Methods

chat_get(*args) click to toggle source

Get chat messages for a specified period.

# File lib/zoom/actions/im/chat.rb, line 8
def chat_get(*args)
  options = Utils.extract_options!(args)
  Zoom::Params.new(options).require(:access_token, :session_id, :from, :to)
  # TODO handle date format for `from` and `to` params
  # TODO implement `next_page_token`, will be returned whenever the set of available chat history list exceeds 100. The expiration period is 30 minutes.
  Utils.parse_response self.class.post('/chat/get', query: options)
end
chat_list(*args) click to toggle source

Get chat history list for a specified time period.

# File lib/zoom/actions/im/chat.rb, line 17
def chat_list(*args)
  options = Utils.extract_options!(args)
  Zoom::Params.new(options).require(:access_token, :from, :to)
  # TODO handle date format for `from` and `to` params
  # TODO implement `next_page_token`, will be returned whenever the set of available chat history list exceeds 100. The expiration period is 30 minutes.
  Utils.parse_response self.class.post('/chat/list', query: options)
end