download_data_request: Download Data Request

View source: R/data_request_queries.R

download_data_requestR Documentation

Download Data Request

Description

downloads a data request specified using the Key field from the output of get_data_request_files()

Usage

download_data_request(
  token,
  key,
  output_file,
  branch = "prod",
  url = NULL,
  aws_gql = NULL,
  aws_alb = NULL,
  docker = FALSE
)

Arguments

token

List token created from get_nabat_gql_token() or get_refresh_token()

key

String pulled from field Key in get_data_request_files()

output_file

String output directory + zip file and extension, ex: /path/to/mydirectory/new_file.zip

branch

(optional) String that defaults to 'prod' but can also be 'dev'|'beta'|'local'

url

(optional) String url to use for GQL

aws_gql

(optional) String url to use in aws

aws_alb

(optional) String url to use in aws

docker

(optional) Boolean if being run in docker container or not


usgs/nabatr documentation built on Jan. 28, 2024, 7:10 a.m.