apiCall is a wrapper for attempting to access the API via httr::POST, and then via
RCurl::postForm if a particular error occurs. This prevents a particular kind of error for which I haven't
found a proper solution, but at least allows the expected behavior of the package.apiCall(url, body, config)httr::POST's body argument or RCurl::postForm's
.param argument.httr::POST's config argument or RCurl::postForm's
.opts argument.httr on Linux. The RCurl equivalents appear to work just fine.In order to prevent this error from occurring, and making the package rather useless, apiCall wraps
httr::POST into a tryCatch call. If the GnuTLS error is thrown, apiCall then resorts to using the
RCurl equivalent call.
Additional details on API parameters are found on the package wiki at