Queries to the Google Cloud Services (GCS) Document AI API about the status of a previously submitted asynchronous job and emits a sound notification when the job is complete.

dai_notify(response, loc = "eu", token = dai_token(), sound = 2)

Arguments

response

a HTTP response object generated by dai_async()

loc

A two-letter region code; "eu" or "us"

token

An authentication token generated by dai_auth() or another auth function

sound

A number from 1 to 10 for the Beepr sound selection (https://www.r-project.org/nosvn/pandoc/beepr.html).

Value

no return value, called for side effects

Examples

if (FALSE) { # \dontrun{
response <- dai_async(myfiles)
dai_notify(response)
} # }