apiCall Base call to Core REST API.

apiCall(coreApi, body, encode, special = NULL, useVerbose = FALSE)

Arguments

coreApi

coreApi object with valid jsessionid

body

body for request

encode

encoding to use for request option are "multipart", "form", "json", "raw"

special

- passed to buildUrl for special sdk endpoints

useVerbose

Use verbose communication for debugging

Value

RETURN return the entire http response

Details

apiCall Base call to Core REST API.

Examples

# NOT RUN {
api<-CoreAPI("PATH TO JSON FILE")
login<- CoreAPI::authBasic(api)
response <-CoreAPI::apiCall(login$coreApi,body,"json",,special=NULL,useVerbose=FALSE)
logOut(login$coreApi )
# }