Sha256: 1ce3564a864d86941f9f5c9abf7e5165bde45cfda4864692218293502e4ab476

Contents?: true

Size: 1.13 KB

Versions: 8

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true

module Zoom
  module Actions
    module IM
      module Chat
        # Get chat messages for a specified period.
        def chat_get(*args)
          options = Utils.extract_options!(args)
          Utils.require_params(%i[access_token session_id from to], options)
          # 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

        # Get chat history list for a specified time period.
        def chat_list(*args)
          options = Utils.extract_options!(args)
          Utils.require_params(%i[access_token from to], options)
          # 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
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
zoom_rb-0.9.1 lib/zoom/actions/im/chat.rb
zoom_rb-0.9.0 lib/zoom/actions/im/chat.rb
zoom_rb-0.8.7 lib/zoom/actions/im/chat.rb
zoom_rb-0.8.6 lib/zoom/actions/im/chat.rb
zoom_rb-0.8.5 lib/zoom/actions/im/chat.rb
zoom_rb-0.8.4 lib/zoom/actions/im/chat.rb
zoom_rb-0.8.3 lib/zoom/actions/im/chat.rb
zoom_rb-0.8.2 lib/zoom/actions/im/chat.rb