authBasic: authBasic - Authenticates against the ODATA REST API using...

Description Usage Arguments Details Value Author(s) Examples

View source: R/authBasic.R

Description

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

Usage

1
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

Details

authBasic Authenticates against the ODATA REST API using basic authentication.

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

Author(s)

Craig Parman ngsAnalytics, ngsanaltics.com

Examples

1
2
3
4
5
6
7
8
## Not run: 
api<-CoreAPIV2::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 )

## End(Not run)

ceparman/Core5.3 documentation built on May 7, 2019, 8:16 a.m.