module Slack::Web::Api::Endpoints::Conversations
def conversations_history(options = {})
- See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/conversations/conversations.history.json -
See: https://api.slack.com/methods/conversations.history -
Options Hash:
(**options)
-
:oldest
(timestamp
) -- -
:limit
(Object
) -- -
:latest
(timestamp
) -- -
:inclusive
(Object
) -- -
:cursor
(Object
) -- -
:channel
(channel
) --
def conversations_history(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] if block_given? Pagination::Cursor.new(self, :conversations_history, options).each do |page| yield page end else post('conversations.history', options) end end