authBasic Logs in and returns a fully populated coreApi object in $coreAPI.

authBasic(coreApi, useVerbose = FALSE)

Arguments

coreApi

object of class coreApi that contains user, password, baseURL and account. account is required if user has access to multiple tenants.

useVerbose

- Use verbose settings for HTTP commands

Value

returns a list with two oblects. coreApi which returns the passed coreApi object with jsessionid, awselb and employeeid populated, $response contains the entire http response

Details

authBasic Authenticates against the ODATA REST API using basic authentication.

Examples

# NOT RUN {
api<-CoreAPIV::CoreAPI("PATH TO JSON FILE")
response<- CoreAPIV2::authBasic(api)
login <- response$core$Api
error <- httr::http_error(response$response)
CoreAPIV2::logOut(response$coreApi,useVerbose=TRUE )
# }