A class to interact with the KoboToolbox API, extending crul::HttpClient.
Super class
crul::HttpClient -> KoboClient
Methods
Method new()
Initialization method for class "KoboClient".
Usage
KoboClient$new(base_url, kobo_token = Sys.getenv("KBTBR_TOKEN"))Method get()
Perform a GET request (with additional checks)
Usage
KoboClient$get(path, query = list(), ...)Arguments
pathcharacter. Path component of the endpoint.
querylist. A named list which is parsed to the query component. The order is not hierarchical.
...crul-options. Additional option arguments, see
crul::HttpClientfor reference
Method post()
Perform a POST request
Arguments
pathcharacter. Path component of the endpoint.
bodyR list. A data payload to be sent to the server.
...crul-options. Additional option arguments, see
crul::HttpClientfor reference
Returns
Returns an object of class crul::HttpResponse.