View source: R/modelDerivative.R
| downloadFile | R Documentation |
Download a file from the AutoDesk Platform Services using the Model Derivative API.
downloadFile(urn = NULL, output_urn = NULL, token = NULL, destfile = NULL)
urn |
A string. Source URN (objectId) for the file. Note the URN must be
Base64 encoded. To encode the URN, see, for example, the
|
output_urn |
A string. Output URN retrieved via |
token |
A string or |
destfile |
A string. Local file path to save binary responses (e.g.
downloaded geometry files). When |
An object containing either parsed JSON content or, for binary responses, the path to the saved file.
## Not run:
# Download the "aerial.dwg" obj file
myEncodedOutputUrn <- jsonlite::base64_enc(myOutputUrn)
resp <- downloadFile(urn <- myEncodedUrn, output_urn <- myEncodedOutputUrn,
token = myToken, destfile = "aerial.obj")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.