R/mermaid_get_project_endpoint.R
mermaid_get_project_endpoint.Rd
Get data from MERMAID API project endpoints not covered by other mermaid_get_project_*
functions. Requires authorization.
mermaid_get_project_endpoint(
project = mermaid_get_default_project(),
endpoint = c("beltfishtransectmethods", "benthiclittransectmethods",
"benthicpittransectmethods", "benthictransects", "collectrecords",
"fishbelttransects", "observers", "project_profiles", "sampleevents"),
limit = NULL,
token = mermaid_token()
)
A way to identify the project(s). Can be project IDs (passed as a character vector directly) or projects resulting from mermaid_get_my_projects
or mermaid_search_my_projects
. Defaults to the projects listed via mermaid_get_default_project
, if available.
Endpoint
Number of records to get. Use NULL (the default) to get all records.
API token. Authenticate manually via mermaid_auth
, or automatically when running any project- or user-specific functions (like this one).
if (FALSE) { # \dontrun{
projects <- mermaid_get_my_projects()
projects %>%
mermaid_get_project_endpoint("observers")
} # }