Client | R Documentation |
Facilitates querying collaborations, creating tasks and retrieving results.
new()
Client$new( host, username = "", password = "", collaboration_id = NULL, api_path = "" )
host
character()
Host to connect to
username
character()
(optional) Username
password
character()
(optional) Password
collaboration_id
integer()
(optional) Collaboration id
api_path
character()
(optional) API path
authenticate()
Client$authenticate(username = "", password = "")
username
character (optional) Username. If not provided, the username and password provided to the constructor are used.
password
character (optional) Password. Required if username is provided.
setPrivateKey()
Client$setPrivateKey(bytes_or_filename)
getVersion()
Client$getVersion()
getCollaborations()
Client$getCollaborations()
getOrganization()
Client$getOrganization(organization_id)
getCollaboration()
Client$getCollaboration(collaboration_id)
setCollaborationId()
Client$setCollaborationId(collaboration_id)
setUseEncryption()
Client$setUseEncryption(flag)
setUseMasterContainer()
Client$setUseMasterContainer(flag = T)
refresh.token()
Client$refresh.token()
request()
Client$request(method, path, data = NULL, first_try = T, prefix.api.path = T)
GET()
Client$GET(path, prefix.api.path = T)
POST()
Client$POST(path, data = NULL, prefix.api.path = T)
PUT()
Client$PUT(path, data = NULL, prefix.api.path = T)
wait.for.results()
Client$wait.for.results(task)
decrypt.result()
Client$decrypt.result(serialized.output)
process.results()
Client$process.results(site_results)
set.task.image()
Client$set.task.image(image, task.name = "")
encrypt()
Client$encrypt(data, org)
call()
Client$call(method, ...)
repr()
Client$repr()
clone()
The objects of this class are cloneable with this method.
Client$clone(deep = FALSE)
deep
Whether to make a deep clone.
client <- vtg::Client$new('http://localhost:5000', api_path='/api')
client$authenticate('root', 'password')
collaborations <- client$getCollaborations()
print(collaborations)
client$set.task.image(image.name, task.name="colnames")
result <- client$call("colnames")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.