apiGET: apiGET - Do a GET from the PFS API.

Description Usage Arguments Details Value Author(s) Examples

View source: R/apiGET.R

Description

apiGET - Do a GET from the PFS API.

Usage

1
2
apiGET(coreApi, resource, query, headers = NULL, special = NULL,
  useVerbose = FALSE, useRaw = FALSE, fullReturn = TRUE)

Arguments

coreApi

coreApi object with valid jsessionid

resource

entity type to get

query

query string

headers

headers to be added to httr::GET.

special

passed to buildUrl for special sdk endpoints

useVerbose

Use verbose communication for debugging (default FALSE)

useRaw

Return raw response content (default FALSE)

fullReturn

Return the entire response object, or just the response content (default TRUE)

Details

apiGET Do a GET from the PFS API.

Value

List of length 2, containing content and response objects:

Author(s)

Craig Parman info@ngsanalytics.com

Francisco Marin francisco.marin@thermofisher.com

Natasha Mora natasha.mora@thermofisher.com

Scott Russell scott.russell@thermofisher.com

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
api <- coreAPI("PATH TO JSON FILE")
login <- authBasic(api)
response <- apiGET(login$coreApi, "json", resource, query)
content <- response$content
error <- response$error$message
logOut(login$coreApi)

## End(Not run)

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