Slack v0.0.12 Slack.File

Functions for working with files in Slack

Summary

Functions

Delete a file from the team

Get information about a file

List files within the team

Disable public sharing for a file

Enable public sharing for a file

Functions

delete(client, body \\ [])

Delete a file from the team.

https://api.slack.com/methods/files.delete

Examples

Slack.client(token)
|> Slack.File.delete(file: "F1234467890")
info(client, query \\ [])

Get information about a file.

https://api.slack.com/methods/files.info

Examples

Slack.client(token)
|> Slack.File.info(file: "F1234467890")
list(client, query \\ [])

List files within the team.

https://api.slack.com/methods/files.list

Examples

Slack.client(token)
|> Slack.File.list
revokePublicURL(client, body \\ [])

Specs

revokePublicURL(Slack.Client.t, Keyword.t) :: Slack.response

Disable public sharing for a file.

https://api.slack.com/methods/files.revokePublicURL

Examples

Slack.client(token)
|> Slack.File.revokePublicURL(file: "F1234467890")
sharedPublicURL(client, body \\ [])

Specs

sharedPublicURL(Slack.Client.t, Keyword.t) :: Slack.response

Enable public sharing for a file.

https://api.slack.com/methods/files.sharedPublicURL

Examples

Slack.client(token)
|> Slack.File.sharedPublicURL(file: "F1234467890")
upload(client, body \\ [])

Upload a file.

https://api.slack.com/methods/files.upload

Examples

Slack.client(token)
|> Slack.File.upload(content: "File contents")