ustfd_response_payload: Extract Payload as Table From Parsed API Response

View source: R/ustfd.R

ustfd_response_payloadR Documentation

Extract Payload as Table From Parsed API Response

Description

ustfd_response_payload() will return the results of the query in tabular format in the form of a tibble with one column for each field returned and one row for every record returned in the same order they were returned.

Usage

ustfd_response_payload(response)

Arguments

response

a parsed response returned by ustfd_json_response()

Value

a tibble

See Also

Other ustfd_low_level: ustfd_json_response(), ustfd_request(), ustfd_response_meta_object(), 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)


ustfd documentation built on Nov. 8, 2023, 1:07 a.m.