View source: R/get_user_domain.R
get_user_domain | R Documentation |
Accepts a vector of user id's, and a domain, and returns a data.frame that indicates if each id is found in that domain.
get_user_domain(domain, user_ids, api_token)
domain |
Skilljar domain you want to search in |
user_ids |
Vector of user id's |
api_token |
Your personalized token provided by 'Skilljar' |
Utilizing the API requires a token. This must be obtained by logging in at dashboard.skilljar.com and going to Organization -> API Credentials. There are different strategies for storing api tokens securely. It is an unnecessary risk to store the token in the script!
A data.frame that indicates if each id is found in that domain.
See https://api.skilljar.com/docs/ for documentation on the 'Skilljar' API.
## Not run:
# Retrieve user data and domain for 100 users
my_users <- get_users(users_desired = 100,
api_token = "my-token")
user_vector <- users %>% select(user_id) %>% pull()
my_users2 <- get_user_domain(user_vector, "my-domain.skilljar.com",
api_token = "my-token")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.