View source: R/dhis2_datasets.R
dhis2_datasets | R Documentation |
dhis2_datasets
queries a DHIS2 server and returns all available datasets.
dhis2_datasets(api_url, username, password)
api_url |
the URL of the DHIS2 api. Usually it is the server URL ending with "/api/" |
username |
the username required to access the DHIS2 server. |
password |
the password required to access the DHIS2 server. |
A list with the unique id and names of each available dataset.
A Internet connection is needed to use this function.
Watch out for hardcoded login and password.
## Not run: # Demo available at https://play.dhis2.org/demo/ library("r-epigraphhub") api_url <- "https://play.dhis2.org/demo/api/" username <- "admin" password <- "district" datasets <- dhis2_datasets(api_url = api_url, username = username, password = password) datasets ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.