From a tsc_api_response
, turn the key payload
(default: "features") into a tibble:tibble
, and
tidyr::unnest_wider
the tibble into columns equivalent to the fields
of the TSC API serializer.
If GeoJSON is found, the keys geometry
(including coordinates
) will
remain unchanged, but the key properties
will be unnested.
tsc_parse(tsc_api_response, payload = "data")
A tsc_api_response
from TSC
(chr) The name of the key containing the parsed
httr::content()
from the TSC API call
A tibble with one row per record and columns corresponding to each record's fields.
Other api:
handle_http_status()
,
print.tsc_api_response()
,
tsc_GET()
,
tsc_POST()
,
tsc_chunk_post()
,
tsc_occ_obs_post()