module Slack::Web::Api::Endpoints::FilesRemote
def files_remote_add(options = {})
- See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files.remote/files.remote.add.json -
See: https://api.slack.com/methods/files.remote.add -
Options Hash:
(**options)-
:preview_image(Object) -- -
:indexable_file_contents(Object) -- -
:filetype(Object) -- -
:title(Object) -- -
:external_url(Object) -- -
:external_id(Object) --
def files_remote_add(options = {}) throw ArgumentError.new('Required arguments :external_id missing') if options[:external_id].nil? throw ArgumentError.new('Required arguments :external_url missing') if options[:external_url].nil? throw ArgumentError.new('Required arguments :title missing') if options[:title].nil? post('files.remote.add', options) end
def files_remote_info(options = {})
- See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files.remote/files.remote.info.json -
See: https://api.slack.com/methods/files.remote.info -
Options Hash:
(**options)-
:file(file) -- -
:external_id(Object) --
def files_remote_info(options = {}) post('files.remote.info', options) end
def files_remote_list(options = {})
- See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files.remote/files.remote.list.json -
See: https://api.slack.com/methods/files.remote.list -
Options Hash:
(**options)-
:ts_to(Object) -- -
:ts_from(Object) -- -
:limit(Object) -- -
:cursor(Object) -- -
:channel(channel) --
def files_remote_list(options = {}) options = options.merge(channel: channels_id(options)['channel']['id']) if options[:channel] if block_given? Pagination::Cursor.new(self, :files_remote_list, options).each do |page| yield page end else post('files.remote.list', options) end end
def files_remote_remove(options = {})
- See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files.remote/files.remote.remove.json -
See: https://api.slack.com/methods/files.remote.remove -
Options Hash:
(**options)-
:file(file) -- -
:external_id(Object) --
def files_remote_remove(options = {}) post('files.remote.remove', options) end
def files_remote_share(options = {})
- See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files.remote/files.remote.share.json -
See: https://api.slack.com/methods/files.remote.share -
Options Hash:
(**options)-
:file(file) -- -
:external_id(Object) -- -
:channels(Object) --
def files_remote_share(options = {}) throw ArgumentError.new('Required arguments :channels missing') if options[:channels].nil? post('files.remote.share', options) end
def files_remote_update(options = {})
- See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files.remote/files.remote.update.json -
See: https://api.slack.com/methods/files.remote.update -
Options Hash:
(**options)-
:title(Object) -- -
:preview_image(Object) -- -
:indexable_file_contents(Object) -- -
:filetype(Object) -- -
:file(file) -- -
:external_url(Object) -- -
:external_id(Object) --
def files_remote_update(options = {}) post('files.remote.update', options) end