client_slack: Slack client

Description Usage Arguments Details See Also Examples

View source: R/client_slack.R

Description

Client extending the client_sendeR for the Slack service. In addition to any fields in the client_sendeR this one contains slack_webhook which is needed to send a message via the Slack Webhook API. For additional information on how to create a webhook see details.

Usage

1
client_slack(slack_webhook, ...)

Arguments

slack_webhook

a webhook obtained from the Slack API settings.

...

named arguments with additional fields which will be passed to set_fields during client creation.

Details

To create your own webhook head to https://api.slack.com/messaging/webhooks. Note: Webhooks are permanently connected to one channel.

See Also

is.client_slack, send_message

Examples

1
2
3
4
client <- client_slack("my_webhook")

# Variant with default parameters set
client2 <- client_slack("my_webhook", message = "Default message template")

tmakowski/sendeR documentation built on June 27, 2020, 9 p.m.