tsc_POST(
data,
serializer,
query = list(format = "json"),
encode = "json",
api_url = get_tsc_api_url(),
api_token = get_tsc_api_token(),
verbose = get_tsc_verbose()
)
(JSON) A list of lists (JSON) to post to TSC.
(character) TSC 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 TSC API URL,
default get_tsc_api_url
, see tsc_setup
(character) The TSC API token,
default get_tsc_api_token
, see tsc_setup
Whether to show verbose messages.
Default: get_tsc_verbose
.
An S3 object of class 'tsc_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:
handle_http_status()
,
print.tsc_api_response()
,
tsc_GET()
,
tsc_chunk_post()
,
tsc_occ_obs_post()
,
tsc_parse()