Title
Arguments
- resp
(
httr2_response
) A singlehttr2::response()
object (as returned byhttr2::req_perform()
).- spec
(
tspec
orNULL
) A specification used bytibblify::tibblify()
to parse the extracted body ofresp
. Whenspec
isNULL
(the default),tibblify::tibblify()
will attempt to guess a spec.- unspecified
(
length-1 character
) A string that describes what happens if the extracted body ofresp
contains fields that are not specified inspec
. Whiletibblify::tibblify()
defaults toNULL
for this value, we set it tolist
so that the body will still parse whenresp
contains extra data without throwing errors.- subset_path
(
character
) An optional vector indicating the path to the "real" object within the body ofresp
. For example, many APIs return a body with information about the status of the response, cache information, perhaps pagination information, and then the actual data in a field such asdata
. If the desired part of the response body is indata$objects
, the value of this argument should bec("data", "object")
.