slackSend: Send Slack Message (Webhook)

View source: R/slack.R

slackSendR Documentation

Send Slack Message (Webhook)

Description

This function send a Slack message using its Webhooks.

Usage

slackSend(text, title = "", pretext = "", hook = NA, creds = NA)

Arguments

text, title, pretext

Character. Content on you Slack message.

hook

Character. Web hook URL. Ths value will be overwritten by creds if correctly used.

creds

Character. Credential's dir (see get_creds()). Set hook URL into the "slack" list in your YML file. Will use first value.

Details

For more help, you can follow the Sending messages using Incoming Webhooks original documentarion.

Value

Invisible POST response

See Also

Other API: bring_api(), fb_accounts(), fb_ads(), fb_creatives(), fb_insights(), fb_process(), fb_report_check(), fb_rf(), fb_token(), gemini_ask(), gpt_ask(), li_auth(), li_profile(), queryGA()

Other Credentials: db_download(), db_upload(), get_credentials(), get_tweets(), mail_send(), queryDB(), queryGA(), stocks_file()

Examples

## Not run: 
slackSend(text = "This is a message", title = "TEST", pretext = Sys.info()["user"])

## End(Not run)

lares documentation built on Sept. 13, 2024, 1:08 a.m.