Sha256: 18e32a7070f68443aed716493c44873e8cae5089e9119ee23c421a4f63616d18

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 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

        Utils.define_bang_methods(self)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zoom_rb-0.8.1 lib/zoom/actions/im/chat.rb