Learn R Programming

ustfd (version 0.4.4)

ustfd_json_response: Process JSON Response of a Successful API Query

Description

ustfd_json_response() will process the response to a successful request from Fiscal Data API and translate a JSON object into a R data structure.

Usage

ustfd_json_response(response, ...)

Value

a list

Arguments

response

an httr response returned by ustfd_request()

...

additional arguments passed to httr::content

See Also

Other ustfd_low_level: ustfd_request(), ustfd_response_meta_object(), ustfd_response_payload(), ustfd_url()

Examples

Run this code
if (FALSE) {
library(ustfd)
query <- ustfd_query('v1/accounting/dts/dts_table_2', sort =c('-record_date'))
response <- ustfd_request(query)
payload_table <- ustfd_response_payload(response)
payload_meta <- ustfd_response_meta_object(response)
}

Run the code above in your browser using DataLab