module Slack::Web::Api::Endpoints::Im
def im_close(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/im/im.close.json -
See: https://api.slack.com/methods/im.close -
Options Hash:
(**options)-
:channel(im) --
def im_close(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('im.close', options) end
def im_history(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/im/im.history.json -
See: https://api.slack.com/methods/im.history -
Options Hash:
(**options)-
:unreads(Object) -- -
:inclusive(Object) -- -
:oldest(timestamp) -- -
:latest(timestamp) -- -
:channel(im) --
def im_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] post('im.history', options) end
def im_list(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/im/im.list.json -
See: https://api.slack.com/methods/im.list -
def im_list(options = {}) post('im.list', options) end
def im_mark(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/im/im.mark.json -
See: https://api.slack.com/methods/im.mark -
Options Hash:
(**options)-
:ts(timestamp) -- -
:channel(im) --
def im_mark(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? throw ArgumentError.new('Required arguments :ts missing') if options[:ts].nil? options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] post('im.mark', options) end
def im_open(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/im/im.open.json -
See: https://api.slack.com/methods/im.open -
Options Hash:
(**options)-
:user(user) --
def im_open(options = {}) throw ArgumentError.new('Required arguments :user missing') if options[:user].nil? options = options.merge(user: users_id(options)['user']['id']) if options[:user] post('im.open', options) end