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_delete(options = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    This method deletes a file from your team. 
- 
  
    
      #files_info(options = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    This method returns information about a file in your team. 
- 
  
    
      #files_list(options = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    This method returns a list of files within the team. 
- 
  
    
      #files_upload(options = {})  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    This method allows you to create or upload an existing file. 
Instance Method Details
#files_delete(options = {}) ⇒ Object
This method deletes a file from your team.
| 15 16 17 18 | # File 'lib/slack/web/api/endpoints/files.rb', line 15 def files_delete( = {}) throw ArgumentError.new('Required arguments :file missing') if [:file].nil? post('files.delete', ) end | 
#files_info(options = {}) ⇒ Object
This method returns information about a file in your team.
| 27 28 29 30 | # File 'lib/slack/web/api/endpoints/files.rb', line 27 def files_info( = {}) throw ArgumentError.new('Required arguments :file missing') if [:file].nil? post('files.info', ) end | 
#files_list(options = {}) ⇒ Object
This method returns a list of files within the team. It can be filtered and sliced in various ways.
| 57 58 59 | # File 'lib/slack/web/api/endpoints/files.rb', line 57 def files_list( = {}) post('files.list', ) end | 
#files_upload(options = {}) ⇒ Object
This method allows you to create or upload an existing file.
| 80 81 82 83 84 | # File 'lib/slack/web/api/endpoints/files.rb', line 80 def files_upload( = {}) throw ArgumentError.new('Required arguments :file missing') if [:file].nil? throw ArgumentError.new('Required arguments :filename missing') if [:filename].nil? post('files.upload', ) end |