`identify_levels` pulls from DATIM to return a dataframe with all PEPFAR
Operating Units and countries with their ISO codes and hierarhcy levels.
This is one of two components that feeds into `get_outable`.
Usage
identify_levels(username, password, baseurl = "https://final.datim.org/")
Arguments
- username
DATIM Username, defaults to using glamr::datim_user()` if blank
- password
DATIM password, defaults to using glamr::datim_pwd()` if blank
- baseurl
base url for the API, default = https://final.datim.org/
Details
To access the UIDs, the user will need to have a DATIM account. You can
take advantage of storing you credentials locally in a secure way
using `set_datim`.
See also
[set_datim()] to store DATIM authentication;
[load_secrets()] to load credentials into session
Examples
if (FALSE) { # \dontrun{
#table for all OUs
load_secrets()
identify_levels() } # }