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 20 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 29 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
get_chat_channels(*args)
click to toggle source
# File lib/zoom/actions/im/chat.rb, line 7 def get_chat_channels(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(:channel_id) Utils.parse_response self.class.get("/chat/channels/#{params[:channel_id]}", headers: request_headers) end
get_chat_user_channels(*args)
click to toggle source
# File lib/zoom/actions/im/chat.rb, line 13 def get_chat_user_channels(*args) params = Zoom::Params.new(Utils.extract_options!(args)) params.require(:user_id).permit(%i[next_page_token page_size]) Utils.parse_response self.class.get("/chat/users/#{params[:user_id]}/channels", query: params.except(:user_id), headers: request_headers) end