Google Cloud Storage Signed URLs In Apps Script

Easy, secure icons

Ferris Argyle
Aug 9, 2018 · 2 min read

Usage

Mint a service account credential in your add-on project’s GCloud console and download it.

$ shred -u ~/Downloads/<KEY_FILE>
<img src='<?= GCSImg ?>' alt="Signed URL Image"/>
  • Call the getSignedURL_ function with the appropriate parameters and set a template variable to the signed URL, eg.
template.GCSImg = getSignedURL_(GCSSignedURLCredential, GCSObjectURL,...);

What’s next

Read the following to learn more about the solution components described in this article:

Google Cloud Platform - Community

A collection of technical articles published or curated by Google Cloud Platform Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.

Ferris Argyle

Written by

These are my personal writings; the views expressed in these pages are mine alone and not those of my employer, Google.

Google Cloud Platform - Community

A collection of technical articles published or curated by Google Cloud Platform Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.