list_gcs_bucket_objects: List GeoPackages in Google Cloud Storage bucket

View source: R/fct_list_gcs_bucket_objects.R

list_gcs_bucket_objectsR Documentation

List GeoPackages in Google Cloud Storage bucket

Description

Makes a request to a user specified Google Cloud Storage bucket to list all objects in the bucket. Filters the response to return a list of GeoPackages (if any). This function uses the httr package for making authenticated HTTP requests and processing responses.

Usage

list_gcs_bucket_objects(token, bucket)

Arguments

token

a httr OAuth2.0 token which allows a user to make authenticated HTTP requests to the Google Cloud Storage API.

bucket

name of Google Cloud Storage bucket to list objects in.

Value

items - a character vector of the names of GeoPacakges in the Google Cloud Storage bucket.


livelihoods-and-landscapes/maplandscape documentation built on March 20, 2023, 5:43 a.m.