Description Usage Arguments Value See Also Examples
View source: R/dataManagement.R
Upload a design file to an app-managed bucket using the Data Management API.
1 | uploadFile(file = NULL, token = NULL, bucket = "mybucket")
|
file |
A string. File path. |
token |
A string. Token generated with |
bucket |
A string. Unique bucket name. Defaults to |
An object containing the bucketKey
, objectId
(i.e.
urn), objectKey
(i.e. file name), size
, contentType
(i.e. "application/octet-stream"), location
. and other content
information.
https://developer.autodesk.com/en/docs/data/v2/overview/
1 2 3 4 5 6 7 | ## Not run:
# Upload the "aerial.dwg" file to "mybucket"
resp <- uploadFile(file = system.file("inst/samples/aerial.dwg", package = "AutoDeskR"),
token = myToken, bucket = "mybucket")
myUrn <- resp$content$objectId
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.