get_user_domain {skilljaR} | R Documentation |
Determine if User has joined a domain
Description
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.
Usage
get_user_domain(domain, user_ids, api_token)
Arguments
domain |
Skilljar domain you want to search in |
user_ids |
Vector of user id's |
api_token |
Your personalized token provided by 'Skilljar' |
Details
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!
Value
A data.frame that indicates if each id is found in that domain.
See Also
See https://api.skilljar.com/docs/ for documentation on the 'Skilljar' API.
Examples
## 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)
[Package skilljaR version 0.1.2 Index]