Search

Download File

Last Updated: Nov 4, 2020

Articles

Use this function to download a given file from slack server.

Syntax

Download File (token, file_id, file_path,)

Parameters

Input Parameter Name Description
token Authentication token
file_id ID of the file to be downloaded
file_path Path of the file to be downloaded

Returns

Return Value Description
Output
  • On Success: 1, File Downloaded Successfully
  • On Failure: 0, Error Message

Sample

Download File (ABCDE, FID-45, C:/Invoices)

  • Uses the token ‘ABCDCEF’ to authenticate the connection to the Slack application, downloads the file with ID ‘FID-45’ to the path ‘C:/Invoices’.
    Returns ‘File Downloaded Successfully’ on downloading the file.

To view all the Slack functions, click here.

Did you find what you were looking for?