Make an API request to the target DHIS2 system
Source:R/check_dhis2_attributes-helpers.R
dhis2_make_api_request.Rd
Make an API request to the target DHIS2 system
Arguments
- base_url
the base URL of the DHIS2 server
- user_name
the user name
- password
the user's password
- which
the target DHIS2 attribute name. Possible values are:
dataSets: to get the dataset identifiers and names
organisationUnits: to get the organisation unit identifiers and names
dataElementGroups: to get the data element groups identifiers and names
dataElements: to get the data elements identifiers and names
Examples
if (FALSE) {
response <- dhis2_make_api_request(
base_url = file.path("https:/", "play.dhis2.org", "demo"),
user_name = "admin",
password = "district",
which = "dataElements"
)
}