powered by
Queries the Google Cloud Services (GCS) Document AI API about the status of a previously submitted asynchronous job.
dai_status(response, loc = "eu", token = dai_token(), verbose = FALSE)
If verbose was set to TRUE, a HTTP response object. If verbose was set to FALSE, a string summarizing the status.
TRUE
FALSE
A HTTP response object generated by dai_async()
dai_async()
A two-letter region code; "eu" or "us"
An authentication token generated by dai_auth() or another auth function
dai_auth()
boolean; Whether to output the full response
if (FALSE) { # Short status message: response <- dai_async(myfiles) dai_status(response) # Full status details: response <- dai_async(myfiles) status <- dai_status(response, verbose = TRUE) }
Run the code above in your browser using DataLab