R/getEntityById.R
getEntityById.RdgetEntityById Get an entity from the LIMS by ID and entityType.
getEntityById(coreApi, entityType, entityId, useVerbose = FALSE)
| coreApi | coreApi object with valid jsessionid |
|---|---|
| entityType | entity type to get |
| entityId | ID of entity to get |
| useVerbose | TRUE or FALSE to indicate if verbose options should be used in http POST |
returns a list $entity contains entity information, $response contains the entire http response
getEntityById get an entity from the LIMS by ID.
# NOT RUN { api<-CoreAPI("PATH TO JSON FILE") login<- CoreAPI::authBasic(api) item<-getEntityById(login$coreApi,"entityType","entityId") logOut(login$coreApi) # }