Remote Files
Learn to use Slack's API calls to manipulate remote files in the workspace.
We'll cover the following...
We'll cover the following...
Overview
Similar to the local file API, Slack offers a remote file API as well. We use this API to add and manipulate remote files.
Let’s look at the following endpoints in this lesson:
files.remote.add: This endpoint adds a file from a remote service.files.remote.share: This endpoint shares a remote file into a channel.files.remote.update: This endpoint updates an existing remote file.files.remote.info: This endpoint retrieves information about a remote file added to Slack.files.remote.list: This endpoint retrieves information about a remote file added to Slack.files.remote.remove: This endpoint removes a remote file.
Add a remote file
To add a remote file, we access the https://slack.com/api/files.remote.add endpoint. With this endpoint, we’ll add a remote document. We must first add a remote file before sharing it in a chat. You can make a new Google document by going to ...