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
Upload a file
Functions
Specs
delete(Slack.Client.t, Keyword.t) :: Slack.response
Delete a file from the team.
https://api.slack.com/methods/files.delete
Examples
Slack.client(token)
|> Slack.File.delete(file: "F1234467890")
Specs
info(Slack.Client.t, Keyword.t) :: Slack.response
Get information about a file.
https://api.slack.com/methods/files.info
Examples
Slack.client(token)
|> Slack.File.info(file: "F1234467890")
Specs
list(Slack.Client.t, Keyword.t) :: Slack.response
List files within the team.
https://api.slack.com/methods/files.list
Examples
Slack.client(token)
|> Slack.File.list
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")
Specs
upload(Slack.Client.t, Keyword.t) :: Slack.response
Upload a file.
https://api.slack.com/methods/files.upload
Examples
Slack.client(token)
|> Slack.File.upload(content: "File contents")