module Slack::Web::Api::Endpoints::Files
def files_delete(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/files/files.delete.json -
See: https://api.slack.com/methods/files.delete -
Options Hash:
(**options)-
:file(file) --
def files_delete(options = {}) throw ArgumentError.new('Required arguments :file missing') if options[:file].nil? post('files.delete', options) end
def files_info(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/files/files.info.json -
See: https://api.slack.com/methods/files.info -
Options Hash:
(**options)-
:file(file) --
def files_info(options = {}) throw ArgumentError.new('Required arguments :file missing') if options[:file].nil? post('files.info', options) end
def files_list(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/files/files.list.json -
See: https://api.slack.com/methods/files.list -
Options Hash:
(**options)-
:types(Object) -- -
:ts_to(Object) -- -
:ts_from(Object) -- -
:channel(channel) -- -
:user(user) --
def files_list(options = {}) options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] options = options.merge(user: users_id(options)['user']['id']) if options[:user] post('files.list', options) end
def files_revokePublicURL(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/files/files.revokePublicURL.json -
See: https://api.slack.com/methods/files.revokePublicURL -
Options Hash:
(**options)-
:file(file) --
def files_revokePublicURL(options = {}) throw ArgumentError.new('Required arguments :file missing') if options[:file].nil? post('files.revokePublicURL', options) end
def files_sharedPublicURL(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/files/files.sharedPublicURL.json -
See: https://api.slack.com/methods/files.sharedPublicURL -
Options Hash:
(**options)-
:file(file) --
def files_sharedPublicURL(options = {}) throw ArgumentError.new('Required arguments :file missing') if options[:file].nil? post('files.sharedPublicURL', options) end
def files_upload(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/files/files.upload.json -
See: https://api.slack.com/methods/files.upload -
Options Hash:
(**options)-
:channels(Object) -- -
:initial_comment(Object) -- -
:title(Object) -- -
:filename(Object) -- -
:filetype(Object) -- -
:content(Object) -- -
:file(file) --
def files_upload(options = {}) throw ArgumentError.new('Required arguments :filename missing') if options[:filename].nil? post('files.upload', options) end