Module: Zoom::Actions::IM::Chat

Included in:
Client
Defined in:
lib/zoom/actions/im/chat.rb

Instance Method Summary collapse

Instance Method Details

#chat_get(*args) ⇒ Object

Get chat messages for a specified period.



8
9
10
11
12
13
14
# 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) ⇒ Object

Get chat history list for a specified time period.



17
18
19
20
21
22
23
# 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