khis_username {khisr}R Documentation

Produces the Configured Username

Description

Produces the Configured Username

Usage

khis_username(auth = NULL)

Arguments

auth

The AuthCred credentials

Value

the username of the user credentials

See Also

Other credential functions: khis_cred(), khis_cred_clear(), khis_has_cred()

Examples


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

    # View the username expect 'DHIS2 username'
    khis_username()

    # Clear credentials
    khis_cred_clear()

    # View the username expect 'NULL'
    khis_username()

## End(Not run)

[Package khisr version 1.0.5 Index]