Get DHIS2 API version
Arguments
- login
A httr2_response object returned by the
dhis2_login()
function
Examples
# login to the DHIS2 instance
dhis2_login <- login(
type = "dhis2",
from = "https://smc.moh.gm/dhis",
user_name = "test",
password = "Gambia@123"
)
#> ✔ Logged in successfully!
# get the API version
api_version <- get_api_version(login = dhis2_login)