Module: Slack::Web::Api::Endpoints::Files
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/files.rb
Instance Method Summary collapse
-
#files_info(options = {}) ⇒ Object
Gets information about a team file.
-
#files_list(options = {}) ⇒ Object
Lists & filters team files.
-
#files_upload(options = {}) ⇒ Object
Uploads or creates a file.
Instance Method Details
#files_info(options = {}) ⇒ Object
Gets information about a team file.
16 17 18 19 |
# File 'lib/slack/web/api/endpoints/files.rb', line 16 def files_info( = {}) throw ArgumentError.new('Required arguments :file missing') if [:file].nil? post('files.info', ) end |
#files_list(options = {}) ⇒ Object
Lists & filters team files.
45 46 47 |
# File 'lib/slack/web/api/endpoints/files.rb', line 45 def files_list( = {}) post('files.list', ) end |
#files_upload(options = {}) ⇒ Object
Uploads or creates a file.
69 70 71 |
# File 'lib/slack/web/api/endpoints/files.rb', line 69 def files_upload( = {}) post('files.upload', ) end |