check_for_authentication: Review API authentication

View source: R/utils.R

check_for_authenticationR Documentation

Review API authentication

Description

Check that the API pass key is specified. It looks for the API key from the r environment, if not supplied, otherwise throws an error.

Usage

check_for_authentication(user = NULL, pass = NULL)

Arguments

user

A DHIS2 user account to authenticate.

pass

Password of the DHIS2 Account.

Value

A list with API key (user and pass) if found.


psi-mis/a360connect documentation built on Nov. 22, 2022, 12:36 p.m.