View source: R/slackeonnier_sent.R
Send attachment to Slack
1 2 3 4 | slackeonnier_sent(attachment,
webhook = Sys.getenv("SLACK_INCOMING_WEBHOOK_URL"),
channel = Sys.getenv("SLACK_SENT_CHANNEL"),
username = Sys.getenv("SLACK_USERNAME"))
|
attachment |
json, comes from attachment_format() |
webhook |
url, use slackeonnier_setup() to set up |
channel |
string, use slackeonnier_setup() to set up |
username |
string, use slackeonnier_setup() to set up |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.