ustfd_json_response {ustfd} | R Documentation |
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, ...)
Arguments
response |
an httr response returned by |
... |
additional arguments passed to |
Value
a list
See Also
Other ustfd_low_level:
ustfd_request()
,
ustfd_response_meta_object()
,
ustfd_response_payload()
,
ustfd_url()
Examples
## Not run:
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)
## End(Not run)
[Package ustfd version 0.4.4 Index]