Skip to contents

Produces the Configured DHIS2 API Base URI

Usage

khis_base_url(auth = NULL)

Arguments

auth

The AuthCred credentials

Value

the DHIS2 base URI

Examples


if (FALSE) {
    # Set the credentials
    khis_cred(username = 'DHIS2 username',
              password = 'DHIS2 password',
              base_url = 'https://dhis2-instance/api')

    # View the DHIS2 instance API expect 'https://dhis2-instance/api'
    khis_base_url()

    # Clear credentials
    khis_cred_clear()
}