slackr_upload: Send a file to Slack

Description Usage Arguments Value Author(s) References See Also

Description

slackrUpload enables you upload files to Slack and (optionally) post them to one or more channels (if channels is not empty).

Usage

1
2
3
4
5
6
7
slackr_upload(filename, title = basename(filename),
  initial_comment = basename(filename), channels = "",
  api_token = Sys.getenv("SLACK_API_TOKEN"))

slackrUpload(filename, title = basename(filename),
  initial_comment = basename(filename), channels = "",
  api_token = Sys.getenv("SLACK_API_TOKEN"))

Arguments

filename

path to file

title

title on slack (optional - defaults to filename)

initial_comment

comment for file on slack (optional - defaults to filename)

channels

slack.com channels to save to (optional)

api_token

full API token

Value

httr response object from POST call (invisibly)

Author(s)

Quinn Weber [ctb], Bob Rudis [aut]

References

https://github.com/hrbrmstr/slackr/pull/15/files

See Also

slackr_setup, dev_slackr, save_slackr


tmooney101/slacktest003 documentation built on May 31, 2019, 4:39 p.m.