Skip to contents

Fetch information for one or more users

Usage

flywire_user_info(
  uids,
  datastack_name = getOption("fafbseg.cave.datastack_name", "flywire_fafb_production")
)

Arguments

uids

A vector of user ids or a dataframe with a user_id column

datastack_name

defaults to the value selected by choose_segmentation and to "flywire_fafb_production" when that is missing. See https://global.daf-apis.com/info/ for other options.

Value

A dataframe of user information

Examples

# \donttest{
flywire_user_info(60, datastack_name = "flywire_fafb_public")
#> Error in py_call_impl(callable, call_args$unnamed, call_args$named): requests.exceptions.HTTPError: 403 Client Error: FORBIDDEN for url: https://global.daf-apis.com/auth/api/v1/user?id=60 content: b'Requires admin privilege.'
#> Run `reticulate::py_last_error()` for details.
# }