Module: Zoom::Actions::IM::Chat
- Included in:
- Client
- Defined in:
- lib/zoom/actions/im/chat.rb
Instance Method Summary collapse
-
#chat_get(*args) ⇒ Object
Get chat messages for a specified period.
-
#chat_list(*args) ⇒ Object
Get chat history list for a specified time period.
- #get_chat_channels(*args) ⇒ Object
- #get_chat_user_channels(*args) ⇒ Object
Instance Method Details
#chat_get(*args) ⇒ Object
Get chat messages for a specified period.
20 21 22 23 24 25 26 |
# File 'lib/zoom/actions/im/chat.rb', line 20 def chat_get(*args) = Utils.(args) Zoom::Params.new().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: ) end |
#chat_list(*args) ⇒ Object
Get chat history list for a specified time period.
29 30 31 32 33 34 35 |
# File 'lib/zoom/actions/im/chat.rb', line 29 def chat_list(*args) = Utils.(args) Zoom::Params.new().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: ) end |
#get_chat_channels(*args) ⇒ Object
7 8 9 10 11 |
# File 'lib/zoom/actions/im/chat.rb', line 7 def get_chat_channels(*args) params = Zoom::Params.new(Utils.(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) ⇒ Object
13 14 15 16 17 |
# File 'lib/zoom/actions/im/chat.rb', line 13 def get_chat_user_channels(*args) params = Zoom::Params.new(Utils.(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 |