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, ...)

Arguments

coreApi

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

...

additional arguments passed to apiPOST

Details

authBasic Authenticates against the ODATA REST API using basic authentication.

Value

List of length 2, containing coreApi and response objects:

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)

AmundsenJunior/pfsrsdk documentation built on July 18, 2019, 8:10 p.m.