apiPOST: apiPOST - Do a POST to the Core ODATA REST API.

Description Usage Arguments Details Value Author(s) Examples

Description

apiPOST - Base call to Core ODATA REST API.

Usage

1
2
apiPOST(coreApi, resource = NULL, body = NULL, encode,
  headers = NULL, special = NULL, useVerbose = FALSE)

Arguments

coreApi

coreApi object with valid jsessionid

resource

entity type for POST

body

body for request

encode

encode type must be "multipart", "form", "json", "raw"

headers

headers to be added to get.

special

passed to buildUrl for special sdk endpoints

useVerbose

Use verbose communication for debugging

Details

apiPOST Do a POST to the Core ODATA REST API.

Value

Returns the entire http response

Author(s)

Craig Parman info@ngsanalytics.com

Francisco Marin francisco.marin@thermofisher.com

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
api <- coreAPI("PATH TO JSON FILE")
login <- authBasic(api)
response <- apiPOST(login$coreApi, "SAMPLE", body, "json", special = NULL, useVerbose = FALSE)
message <- httr::content(response)
error <- httr::http_error(response)
logOut(login$coreApi)

## End(Not run)

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