dai_status {daiR} | R Documentation |
Check job status
Description
Queries the Google Cloud Services (GCS) Document AI API about the status of a previously submitted asynchronous job.
Usage
dai_status(response, loc = "eu", token = dai_token(), verbose = FALSE)
Arguments
response |
A HTTP response object generated by
|
loc |
A two-letter region code; "eu" or "us" |
token |
An authentication token generated by
|
verbose |
boolean; Whether to output the full response |
Value
If verbose was set to TRUE
, a HTTP response object.
If verbose was set to FALSE
, a string summarizing the status.
Examples
## Not run:
# Short status message:
response <- dai_async(myfiles)
dai_status(response)
# Full status details:
response <- dai_async(myfiles)
status <- dai_status(response, verbose = TRUE)
## End(Not run)
[Package daiR version 1.0.0 Index]