Learn R Programming

readepi (version 1.0.4)

get_api_version: Get DHIS2 API version

Description

Get DHIS2 API version

Usage

get_api_version(login)

Value

A numeric with minor version of the API

Arguments

login

A httr2_response object returned by the dhis2_login() function

Examples

Run this code
if (FALSE) {
  # login to the DHIS2 instance
  dhis2_login <- login(
    type = "dhis2",
    from = "https://smc.moh.gm/dhis",
    user_name = "test",
    password = "Gambia@123"
  )

  # get the API version
  api_version <- get_api_version(login = dhis2_login)
}

Run the code above in your browser using DataLab