login_gigwa: Login to the GIGWA server

View source: R/qbms.R

login_gigwaR Documentation

Login to the GIGWA server

Description

Connect to the GIGWA server. If username or password parameters are missing, then a login window will pop-up to insert username and password.

All other connection parameters (i.e. server IP or domain, connection port, API path, and connection protocol e.g. http://) will retrieve from the qbms_config list.

This function will update both of the qbms_config list (brapi connection object in the con key) and qbms_state list (token value in the token key).

Usage

login_gigwa(username = NULL, password = NULL)

Arguments

username

the GIGWA username (optional, default is NULL)

password

the GIGWA password (optional, default is NULL)

Value

no return value

Author(s)

Khaled Al-Shamaa, k.el-shamaa@cgiar.org

Examples

if(interactive()) {
# config your GIGWA connection
set_qbms_config("http://localhost:59395/gigwa/index.jsp", time_out = 300, engine = "gigwa")

# login using your GIGWA account (interactive mode)
# you can pass GIGWA username and password as parameters (batch mode)
login_gigwa()
login_gigwa("gigwadmin", "nimda")
}

khaled-alshamaa/QBMS documentation built on Jan. 27, 2024, 6:40 a.m.