module Slack::Web::Api::Endpoints::Groups
def groups_archive(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.archive.json -
See: https://api.slack.com/methods/groups.archive -
Options Hash:
(**options)
-
:channel
(group
) --
def groups_archive(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] post('groups.archive', options) end
def groups_close(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.close.json -
See: https://api.slack.com/methods/groups.close -
Options Hash:
(**options)
-
:channel
(group
) --
def groups_close(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] post('groups.close', options) end
def groups_create(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.create.json -
See: https://api.slack.com/methods/groups.create -
Options Hash:
(**options)
-
:name
(Object
) --
def groups_create(options = {}) throw ArgumentError.new('Required arguments :name missing') if options[:name].nil? post('groups.create', options) end
def groups_createChild(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.createChild.json -
See: https://api.slack.com/methods/groups.createChild -
Options Hash:
(**options)
-
:channel
(group
) --
def groups_createChild(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] post('groups.createChild', options) end
def groups_history(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.history.json -
See: https://api.slack.com/methods/groups.history -
Options Hash:
(**options)
-
:unreads
(Object
) -- -
:inclusive
(Object
) -- -
:oldest
(timestamp
) -- -
:latest
(timestamp
) -- -
:channel
(group
) --
def groups_history(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] post('groups.history', options) end
def groups_info(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.info.json -
See: https://api.slack.com/methods/groups.info -
Options Hash:
(**options)
-
:channel
(group
) --
def groups_info(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] post('groups.info', options) end
def groups_invite(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.invite.json -
See: https://api.slack.com/methods/groups.invite -
Options Hash:
(**options)
-
:user
(user
) -- -
:channel
(group
) --
def groups_invite(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? throw ArgumentError.new('Required arguments :user missing') if options[:user].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] options = options.merge(user: users_id(options)['user']['id']) if options[:user] post('groups.invite', options) end
def groups_kick(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.kick.json -
See: https://api.slack.com/methods/groups.kick -
Options Hash:
(**options)
-
:user
(user
) -- -
:channel
(group
) --
def groups_kick(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? throw ArgumentError.new('Required arguments :user missing') if options[:user].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] options = options.merge(user: users_id(options)['user']['id']) if options[:user] post('groups.kick', options) end
def groups_leave(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.leave.json -
See: https://api.slack.com/methods/groups.leave -
Options Hash:
(**options)
-
:channel
(group
) --
def groups_leave(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] post('groups.leave', options) end
def groups_list(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.list.json -
See: https://api.slack.com/methods/groups.list -
Options Hash:
(**options)
-
:exclude_archived
(Object
) --
def groups_list(options = {}) post('groups.list', options) end
def groups_mark(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.mark.json -
See: https://api.slack.com/methods/groups.mark -
Options Hash:
(**options)
-
:ts
(timestamp
) -- -
:channel
(group
) --
def groups_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: groups_id(options)['group']['id']) if options[:channel] post('groups.mark', options) end
def groups_open(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.open.json -
See: https://api.slack.com/methods/groups.open -
Options Hash:
(**options)
-
:channel
(group
) --
def groups_open(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] post('groups.open', options) end
def groups_rename(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.rename.json -
See: https://api.slack.com/methods/groups.rename -
Options Hash:
(**options)
-
:name
(Object
) -- -
:channel
(group
) --
def groups_rename(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? throw ArgumentError.new('Required arguments :name missing') if options[:name].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] post('groups.rename', options) end
def groups_setPurpose(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.setPurpose.json -
See: https://api.slack.com/methods/groups.setPurpose -
Options Hash:
(**options)
-
:purpose
(Object
) -- -
:channel
(group
) --
def groups_setPurpose(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? throw ArgumentError.new('Required arguments :purpose missing') if options[:purpose].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] post('groups.setPurpose', options) end
def groups_setTopic(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.setTopic.json -
See: https://api.slack.com/methods/groups.setTopic -
Options Hash:
(**options)
-
:topic
(Object
) -- -
:channel
(group
) --
def groups_setTopic(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? throw ArgumentError.new('Required arguments :topic missing') if options[:topic].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] post('groups.setTopic', options) end
def groups_unarchive(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/groups/groups.unarchive.json -
See: https://api.slack.com/methods/groups.unarchive -
Options Hash:
(**options)
-
:channel
(group
) --
def groups_unarchive(options = {}) throw ArgumentError.new('Required arguments :channel missing') if options[:channel].nil? options = options.merge(channel: groups_id(options)['group']['id']) if options[:channel] post('groups.unarchive', options) end