POST data to a TSC API serializer in chunks
tsc_chunk_post(
data,
serializer,
query = list(),
chunksize = 1000,
encode = "json",
api_url = get_tsc_api_url(),
api_token = get_tsc_api_token(),
verbose = get_tsc_verbose()
)
Data to post to the serializer
A TSC API serializer, e.g. "occ-taxon-point"
An optional query for tsc_POST
,
default: list()
.
The number of records to post at a time, default: 1000.
The parameter encode
for 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
.
The tsc_api_response
of the last batch of data.
Other api:
handle_http_status()
,
print.tsc_api_response()
,
tsc_GET()
,
tsc_POST()
,
tsc_occ_obs_post()
,
tsc_parse()
if (FALSE) {
# chunk_post examples from ETL scripts
}