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

Description Arguments Details Value Author(s) See Also Examples

Description

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

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

See Also

pfsrsdk-deprecated

Examples

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

## End(Not run)

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