brapi_get_call: Internal function used for core BrAPI GET calls

View source: R/qbms.R

brapi_get_callR Documentation

Internal function used for core BrAPI GET calls

Description

This function created for *internal use only* to cal BrAPI in GET method and retrieve the rough response data and send back the results. This function take care of pagination, authentication, encoding, compress, decode JSON response, etc.

Usage

brapi_get_call(call_url, nested = TRUE)

Arguments

call_url

BrAPI URL to call in GET method

nested

If FALSE, then retrieved JSON data will be flatten (default is TRUE)

Value

result object returned by JSON API response

Author(s)

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


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