Learn R Programming

readepi (version 1.0.4)

dhis2_login: Establish connection to a DHIS2 instance

Description

Establish connection to a DHIS2 instance

Usage

dhis2_login(base_url, user_name, password)

Value

An httr2_response object if the connection was successfully established

Arguments

base_url

A character with the base URL of the target DHIS2 instance

user_name

A character with the user name

password

A character with the user's password

Examples

Run this code
if (FALSE) {
  dhis2_log <- dhis2_login(
    base_url = "https://play.im.dhis2.org/stable-2-42-1",
    user_name = "admin",
    password = "district"
  )
}

Run the code above in your browser using DataLab