module Slack::Web::Api::Endpoints::Files

def files_completeUploadExternal(options = {})

Other tags:
    See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files/files.completeUploadExternal.json -
    See: https://api.slack.com/methods/files.completeUploadExternal -

Options Hash: (**options)
  • :thread_ts (string) --
  • :initial_comment (string) --
  • :channels (string) --
  • :channel_id (Object) --
  • :blocks (blocks[] as string) --
  • :files (array) --
def files_completeUploadExternal(options = {})
  raise ArgumentError, 'Required arguments :files missing' if options[:files].nil?
  options = encode_options_as_json(options, %i[blocks])
  post('files.completeUploadExternal', options)
end

def files_delete(options = {})

Other tags:
    See: https://github.com/slack-ruby/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 = {})
  raise ArgumentError, 'Required arguments :file missing' if options[:file].nil?
  post('files.delete', options)
end

def files_edit(options = {})

Other tags:
    See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/undocumented/files/files.edit.json -

Options Hash: (**options)
  • :filetype (Object) --
  • :title (Object) --
  • :file (Object) --
def files_edit(options = {})
  raise ArgumentError, 'Required arguments :file missing' if options[:file].nil?
  raise ArgumentError, 'Required arguments :title missing' if options[:title].nil?
  logger.warn('The files.edit method is undocumented.')
  post('files.edit', options)
end

def files_getUploadURLExternal(options = {})

Other tags:
    See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files/files.getUploadURLExternal.json -
    See: https://api.slack.com/methods/files.getUploadURLExternal -

Options Hash: (**options)
  • :snippet_type (string) --
  • :alt_txt (string) --
  • :length (integer) --
  • :filename (string) --
def files_getUploadURLExternal(options = {})
  raise ArgumentError, 'Required arguments :filename missing' if options[:filename].nil?
  raise ArgumentError, 'Required arguments :length missing' if options[:length].nil?
  post('files.getUploadURLExternal', options)
end

def files_info(options = {})

Other tags:
    See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files/files.info.json -
    See: https://api.slack.com/methods/files.info -

Options Hash: (**options)
  • :limit (integer) --
  • :cursor (string) --
  • :file (file) --
def files_info(options = {})
  raise ArgumentError, 'Required arguments :file missing' if options[:file].nil?
  if block_given?
    Pagination::Cursor.new(self, :files_info, options).each do |page|
      yield page
    end
  else
    post('files.info', options)
  end
end

def files_list(options = {})

Other tags:
    See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files/files.list.json -
    See: https://api.slack.com/methods/files.list -

Options Hash: (**options)
  • :user (user) --
  • :types (string) --
  • :ts_to (string) --
  • :ts_from (string) --
  • :team_id (string) --
  • :show_files_hidden_by_limit (boolean) --
  • :channel (channel) --
def files_list(options = {})
  options = options.merge(channel: conversations_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 = {})

Other tags:
    See: https://github.com/slack-ruby/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 = {})
  raise ArgumentError, 'Required arguments :file missing' if options[:file].nil?
  post('files.revokePublicURL', options)
end

def files_share(options = {})

Other tags:
    See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/undocumented/files/files.share.json -

Options Hash: (**options)
  • :channel (channel) --
  • :file (Object) --
def files_share(options = {})
  raise ArgumentError, 'Required arguments :file missing' if options[:file].nil?
  raise ArgumentError, 'Required arguments :channel missing' if options[:channel].nil?
  options = options.merge(channel: conversations_id(options)['channel']['id']) if options[:channel]
  logger.warn('The files.share method is undocumented.')
  post('files.share', options)
end

def files_sharedPublicURL(options = {})

Other tags:
    See: https://github.com/slack-ruby/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 = {})
  raise ArgumentError, 'Required arguments :file missing' if options[:file].nil?
  post('files.sharedPublicURL', options)
end

def files_upload(options = {})

Other tags:
    See: https://github.com/slack-ruby/slack-api-ref/blob/master/methods/files/files.upload.json -
    See: https://api.slack.com/methods/files.upload -

Options Hash: (**options)
  • :title (string) --
  • :thread_ts (string) --
  • :initial_comment (string) --
  • :filetype (string) --
  • :filename (string) --
  • :file (file) --
  • :content (string) --
  • :channels (string) --
def files_upload(options = {})
  post('files.upload', options)
end