wastd_POST(
data,
serializer,
query = list(format = "json"),
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 = wastdr::get_wastdr_verbose()
)
(JSON) A list of lists (JSON) to post to WAStD.
(character) WAStD API serializer name (required)
Possible values see https://tsc.dbca.wa.gov.au/api/1/
(list) A list of POST parameters,
default: list(format="json")
.
The parameter encode
for \link{httr::POST}
,
default: "json".
Other options: c("multipart", "form", "json", "raw")
.
(character) The WAStD API URL,
default get_wastdr_api_url
, see wastdr_setup
(character) The WAStD API token,
default get_wastdr_api_token
, see wastdr_setup
(character) A WAStD API username,
default get_wastdr_api_un
, see wastdr_setup
(character) A WAStD API password,
default get_wastdr_api_pw
, see wastdr_setup
Whether to show debug messages. Default: wastdr::get_wastdr_verbose()
An S3 object of class 'wastd_api_response' containing:
data: The parsed response content
serializer: The called serializer, e.g. 'supra'
url: The called URL
date: The timestamp of the request
status_code: The HTTP status code of the request
Other api:
build_auth()
,
download_minimal_wastd_turtledata()
,
download_wastd_sites()
,
download_wastd_turtledata()
,
download_wastd_users()
,
export_wastd_turtledata()
,
filter_wastd_turtledata_area()
,
filter_wastd_turtledata_seasons()
,
filter_wastd_turtledata()
,
handle_http_status()
,
wastd_GET()
,
wastd_bulk_post()
,
wastd_chunk_post()
,
wastd_create_update_skip()
,
wastd_parse()
,
wastd_post_one()
if (FALSE) {
# TBA
}