Skip to contents

This function is created for *internal use only* to call BrAPI in the GET method and retrieve the raw response data and send back the results. This function takes care of pagination, authentication, encoding, compression, decoding JSON response, etc.

Usage

brapi_get_call(call_url, nested = TRUE)

Arguments

call_url

BrAPI URL to call in GET method.

nested

Logical indicating whether retrieved JSON data will be flattened. Default is TRUE.

Value

Result object returned by the JSON API response.

Author

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