% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fetch.R
\name{fetch_url}
\alias{fetch_url}
\title{Get pre-authenticated download URL(s) for a remote RAP file or folder}
\usage{
fetch_url(path, duration = "1d")
}
\arguments{
\item{path}{(character) Remote file path or folder path, e.g.
\code{"Showcase metadata/field.tsv"} or \code{"Showcase metadata/"}.}

\item{duration}{(character) How long the URLs remain valid. Accepts
suffixes: \code{s}, \code{m}, \code{h}, \code{d}, \code{w}, \code{M},
\code{y}. Default: \code{"1d"} (one day).}
}
\value{
A named character vector of pre-authenticated HTTPS URLs.
Names are the file names.
}
\description{
Generates temporary HTTPS URLs for files on the DNAnexus Research Analysis
Platform. For a single file, returns one URL. For a folder, lists all files
inside and returns a named character vector of URLs.
}
\examples{
\dontrun{
# Single file
fetch_url("Showcase metadata/field.tsv")

# Entire folder
fetch_url("Showcase metadata/", duration = "7d")
}
}
