View source: R/team_management.R
add_team_code | R Documentation |
Add a team using a Slack response code.
add_team_code(code, redirect_uri = NULL, verbose = TRUE)
code |
character, a code returned by the slack oauth2 v2 api. |
redirect_uri |
character, the uri to which the user was redirected when the code was generated. |
verbose |
logical, Print messages to console, Default: TRUE |
Launch a browser window to interactively grant slackteams permission to act on your behalf on a Slack team.
Two environment variables control this function:
SLACK_CLIENT_ID: character, the client_id of a Slack app. If this is not provided, the function will use the built-in R4DS Slack app.
SLACK_CLIENT_SECRET: character, the client_secret of a Slack app. If this is not provided, the function will use the built-in R4DS Slack app.
The token (invisibly)
This function does not currently work in an Rstudio Server setup. We are exploring options to remedy this situation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.