user_info | R Documentation |
Get information about the logged-in user from the Slack API.
user_info(
components = c("user_id", "real_name", "display_name", "pronouns", "user_name"),
session = shiny::getDefaultReactiveDomain(),
slack_api_key = session$userData$shinyslack_api_key,
team_id = get_shinyslack_team_id(),
shinyslack_key = Sys.getenv("SHINYSLACK_KEY")
)
components |
A character vector of user components to include. Current options are:
|
session |
The shiny session object. The default
|
slack_api_key |
The Slack API key to use. The default value should likely always be used outside of tests. |
team_id |
The Slack team ID through which the user is being authenticated. |
shinyslack_key |
(optional) A key to use to encrypt the string. If not set, the string is returned unencrypted. |
A shiny::reactive()
with a named character vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.