[Maturing]

wastd_bulk_post(
  data,
  serializer,
  encode = "json",
  api_url = wastdr::get_wastdr_api_url(),
  api_token = wastdr::get_wastdr_api_token(),
  api_un = wastdr::get_wastdr_api_un(),
  api_pw = wastdr::get_wastdr_api_pw(),
  verbose = FALSE
)

Arguments

data

A tibble of a data with columns equal to the serializer's fields.

serializer

(character) WAStD API serializer name (required) Possible values see https://tsc.dbca.wa.gov.au/api/1/

encode

The parameter encode for link{httr::POST}, default: "json". Other options: c("multipart", "form", "json", "raw").

api_url

(character) The WAStD API URL, default get_wastdr_api_url, see wastdr_setup

api_token

(character) The WAStD API token, default get_wastdr_api_token, see wastdr_setup

api_un

(character) A WAStD API username, default get_wastdr_api_un, see wastdr_setup

api_pw

(character) A WAStD API password, default get_wastdr_api_pw, see wastdr_setup

verbose

Whether to show debug messages. Default: wastdr::get_wastdr_verbose()

Value

The list of wastd_api_responses from wastd_POST

Examples

if (FALSE) {
odkc_data$tracks %>%
  odkc_tracks_as_wastd_tne() %>%
  wastd_bulk_post("turtle-nest-encounters")
}