Cloud Storage API
.Credentials
.Code.gs
file with the following code instead:
Constants
. The .gs
extension is added automatically.
Constants.gs
file with the following code instead:
<bucket-path>
with the path to your Google Cloud Storage bucket. This is the same path that you specified
when you created your Google Cloud Storage source connector in your Unstructured account. Do not include the gs://
prefix here.<unstructured-api-url>
with your Unstructured API URL value.<workflow-id>
with the ID of your Unstructured workflow.<unstructured-api-key>
with your Unstructured API key value.<client-id>
with your OAuth 2.0 client ID value.<client-secret>
with your OAuth 2.0 client secret value.Credentials
.https://script.google.com/macros/d/<script-id>/usercallback
, replacing <script-id>
with the script’s ID value that you copied earlier.1B7FSrk5Zi6L1rSxxTDgDEUsPzlukDsi4KGuTMorsTQHhGBzBkMun4iDF
, and then click Look up.Open the following URL and re-run the script
, copy the entire URL into
a separate tab in your web browser and then browse to that URL.checkForNewOrUpdatedGCSFiles
.
5
in the following
line of code in the checkForNewOrUpdatedFiles
function. Change the number 5
to the number of minutes that correspond to the alternate interval you
selected: