R/authBasic.R
authBasic.Rd
authBasic
Logs in and returns a fully populated coreApi object in $coreAPI.
authBasic(coreApi, useVerbose = FALSE)
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 |
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
authBasic
Authenticates against the ODATA REST API using basic authentication.
# 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 ) # }