Description Usage Arguments Details See Also Examples
This creates a signed URL which you can share with others who may or may not have a Google account. The object will be available until the specified timestamp.
| 1 2 3 4 5 6 7 | gcs_signed_url(
  meta_obj,
  expiration_ts = Sys.time() + 3600,
  verb = "GET",
  md5hash = NULL,
  includeContentType = FALSE
)
 | 
| meta_obj | A meta object from gcs_get_object | 
| expiration_ts | A timestamp of class  | 
| verb | The URL verb of access e.g.  | 
| md5hash | An optional md5 digest value | 
| includeContentType | For getting the URL via browsers this should be set to  | 
Create a URL with a time-limited read and write to an object, regardless whether they have a Google account
https://cloud.google.com/storage/docs/access-control/signed-urls
Other download functions: 
gcs_download_url(),
gcs_parse_download()
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run: 
obj <- gcs_get_object("your_file", meta = TRUE)
signed <- gcs_signed_url(obj)
temp <- tempfile()
on.exit(unlink(temp))
download.file(signed, destfile = temp)
file.exists(temp)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.