Download pelagic data system trips in as csv or json
retrieve_pds_trips_data.Rd
Download pelagic data system trips in as csv or json
Usage
retrieve_pds_trips_data(
path,
secret = NULL,
token = NULL,
start_date = NULL,
end_date = NULL,
overwrite = TRUE
)
Arguments
- path
String with path to file where API request should be saved
- secret
Access secret code for the account
- token
Access token for the account
- start_date
Start date from which download trips information
- end_date
Last date to download trips information
- overwrite
Will only overwrite existing path if TRUE.
Examples
retrieve_pds_trips_data("test.csv")
#> [1] "test.csv"
file.remove("test.csv")
#> [1] TRUE