DATIM API Call for Targets

get_datim_targets(url, username, password)

Arguments

url

supply url forAPI call, recommend usinggen_url()

username

DATIM username

password

DATIM password, recommend using mypwd()

Examples

if (FALSE) {
 myurl <- paste0(baseurl, "api/29/analytics.json?
                 dimension=LxhLO68FcXm:udCop657yzi&
                 dimension=ou:LEVEL-4;HfVjCurKxh2&
                 filter=pe:2018Oct&
                 displayProperty=SHORTNAME&outputIdScheme=CODE")
 myuser <- "UserX"
 df_targets <- get_datim_targets(myurl, myuser, mypwd(myuser)) }