Skip to contents

Download call records in CSV, JSON, or Parquet format. Filters are the same as dep_read_calls().

Usage

dep_share_calls(
  format = c("csv", "json", "parquet"),
  id = NULL,
  event_id = NULL,
  caller = NULL,
  caller_role = NULL,
  reason = NULL,
  confidence = NULL,
  place = NULL,
  called_at = NULL,
  includes = NULL,
  dry_run = FALSE,
  verbosity = 0
)

Arguments

format

Character. Export format: "csv", "json", or "parquet".

id

Integer vector. Filter by event ID(s).

event_id

Integer vector. Filter by parent event ID(s).

caller

Character. Filter by caller name (partial match).

caller_role

Character vector. Filter by caller role. See dep_caller_roles().

reason

Character vector. Filter by reason. See dep_reasons().

confidence

Character vector. Filter by confidence level. See dep_confidence().

place

Character. Filter by place name (partial match).

called_at

Character. Filter by call date (e.g. "2024-01-01,2024-12-31" for a range).

includes

Character vector of related resources to include in the response. Valid values: "calls", "investigations", "animals", "group".

dry_run

Logical. If TRUE, prints the request without sending it.

verbosity

Integer. How much information to print (0 = silent, 1 = headers, 2 = headers + body, 3 = full).

Value

The parsed export data, or the raw response if dry_run is TRUE.