Skip to contents

Fetch column headers and data for sync APIs in WildTrax. You must specify at least one of project or organization depending on the API and at what level of the system you're looking for data for

Usage

wt_get_sync(
  api,
  option = c("columns", "data"),
  project = NULL,
  organization = NULL
)

Arguments

api

A string specifying the API to query. Must be one of:

  • "organization_locations"

  • "organization_visits"

  • "organization_recording_summary"

  • "organization_image_summary"

  • "project_locations"

  • "project_species"

  • "project_aru_tasks"

  • "project_aru_tags"

  • "project_camera_tags"

  • "project_point_counts"

option

Choose between just returning column headers or the entire dataframe itself

project

The project id

organization

The organization id

Value

A tibble with column headers for the specified API call.

Examples

if (FALSE) { # \dontrun{
# Authenticate first:
wt_auth()

# Fetch column headers by organization
wt_get_sync("organization_locations")

# Fetch column headers by project
wt_get_sync("project_point_counts")
} # }