Get the metadata of an uploaded file using the Model Derivative API.
Usage
getMetadata(urn = NULL, token = NULL)
Value
An object containing the type, name, and guid of
the file.
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.
token
A string. Token generated with getToken function
with data:read and data:write scopes.
if (FALSE) {
# Get the metadata for the "aerial.dwg" svf fileresp <- getMetadata(urn <- myEncodedUrn, token = myToken)
myGuid <- resp$content$data$metadata[[1]]$guid
}