dai_notify: Notify on job completion

View source: R/send_to_dai.R

dai_notifyR Documentation

Notify on job completion

Description

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.

Usage

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

## Not run: 
response <- dai_async(myfiles)
dai_notify(response)

## End(Not run)

daiR documentation built on Sept. 8, 2023, 5:43 p.m.