module Slack::Web::Api::Endpoints::Im
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)
-
:return_im
(Object
) -- -
:include_locale
(Object
) -- -
: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