module Slack::Web::Api::Endpoints::Files
def files_comments(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/files.comments.json -
See: https://api.slack.com/methods/files.comments -
Options Hash:
(**options)
-
:comment
(Object
) -- -
:id
(Object
) -- -
:file
(file
) --
def files_comments(options = {}) throw ArgumentError.new('Required arguments :file missing') if options[:file].nil? throw ArgumentError.new('Required arguments :id missing') if options[:id].nil? throw ArgumentError.new('Required arguments :comment missing') if options[:comment].nil? post('files.comments', options) end
def files_delete(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/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.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.list.json -
See: https://api.slack.com/methods/files.list -
Options Hash:
(**options)
-
:types
(Object
) -- -
:ts_to
(Object
) -- -
:ts_from
(Object
) -- -
:user
(user
) --
def files_list(options = {}) post('files.list', options) end
def files_upload(options = {})
- See: https://github.com/dblock/slack-api-ref/blob/master/methods/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 :file missing') if options[:file].nil? throw ArgumentError.new('Required arguments :filename missing') if options[:filename].nil? post('files.upload', options) end