Download a file from the Forge Platform using the Model Derivative API.
Arguments
- urn
A string. Source URN (objectId) for the file. Note the URN must be Base64 encoded. To encode the URN, see, for example, the
jsonlite::base64_enc
function.- output_urn
A string. Output_urn retrieved via
getOutputUrn
- token
A string. Token generated with
getToken
function withdata:read
anddata:write
scopes.
Examples
if (FALSE) { # \dontrun{
# Download the "aerial.dwg" png file
myEncodedOutputUrn <- jsonlite::base64_enc(myOutputUrn)
resp <- downloadFile(urn <- myEncodedUrn, output_urn <- myEncodedOutputUrn, token = myToken)
} # }