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

Description Usage Arguments Details Value Author(s) Examples

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 username, password, baseURL and tenant. tenant 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 info@ngsanalytics.com

Scott Russell scott.russell@thermofisher.com

Adam Wheeler adam.wheeler@thermofisher.com

Natasha Mora natasha.mora@thermofisher.com

Francisco Marin francisco.marin@thermofisher.com

Examples

1
2
3
4
5
6
7
8
## Not run: 
api <- coreAPI("PATH TO JSON FILE")
response <- authBasic(api)
login <- response$core$Api
error <- httr::http_error(response$response)
logOut(response$coreApi, useVerbose = TRUE)

## End(Not run)

ajwtech/pfsrsdk documentation built on June 14, 2019, 10:34 a.m.