Description Usage Arguments Details Value Author(s) Examples
apiPOST
- Base call to Core ODATA REST API.
1 2 |
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 |
apiPOST
Do a POST to the Core ODATA REST API.
Returns the entire http response
Craig Parman ngsAnalytics, ngsanalytics.com
1 2 3 4 5 6 7 8 9 | ## Not run:
api<-CoreAPIV2::CoreAPI("PATH TO JSON FILE")
login<- CoreAPIV2::authBasic(api)
response <-CoreAPIV2::apiPOST(login$coreApi,"SAMPLE",body,"json",special=NULL,useVerbose=FALSE)
message <- httr::content(response)
error <- httr::http_error(response)
CoreAPIV2::logOut(login$coreApi )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.