getAttachedFile: getAttachedFile - Gets file attached to an attribute on a...

Description Usage Arguments Details Value Author(s) Examples

Description

getAttachedFile Gets file attached to an attribute on a entity. The $entity slot contains the binary file data.

Usage

1
getAttachedFile(coreApi, entityType, barcode, attribute, useVerbose = FALSE)

Arguments

coreApi

coreApi object with valid jsessionid

entityType

entity type where sample is attached

barcode

barcode of the entity

attribute

name of the attribute

useVerbose

TRUE or FALSE to indicate if verbose options should be used

Details

getAttachedFile Gets file attached to an attribute on a entity

Value

returns a list $entity contains file data, $response contains the entire http response

Author(s)

Craig Parman ngsAnalytics, ngsanalytics.com

Examples

1
2
3
4
5
6
7
8
## Not run: 
api<-CoreAPIV2::CoreAPI("PATH TO JSON FILE")
login<- CoreAPIV2::authBasic(api)
response<-  getAttachedFile(login$coreApi,entityType,barcode,attributeName)
witeBin(response$entity,"filename.txt")
CoreAPIV2:logOut(login$coreApi)

## End(Not run)

ceparman/Core5.3 documentation built on May 7, 2019, 8:16 a.m.