Skip to contents

Check the status of a Design Automation WorkItem using the Design Automation API v3.

Usage

checkPdf(id = NULL, token = NULL, source = NULL, destination = NULL)

Arguments

id

A string. WorkItem ID returned by makePdf in resp$content$id.

token

A string or aps_token object with code:all scope.

source

Deprecated. Ignored with a warning.

destination

Deprecated. Ignored with a warning.

Value

An object containing the WorkItem id, status, and stats.

Examples

if (FALSE) { # \dontrun{
mySource <- "http://download.autodesk.com/us/samplefiles/acad/visualization_-_aerial.dwg"
myDestination <- "https://example.com/output/aerial.pdf"
resp <- makePdf(mySource, myDestination, token = myToken)
myWorkItemId <- resp$content$id

# Poll for completion
resp <- checkPdf(id = myWorkItemId, token = myToken)
resp
} # }