Learn R Programming

ustfd (version 0.4.4)

ustfd_response_meta_object: Extract Metadata From Parsed API Response

Description

ustfd_response_meta_object() will return the meta object included in a successful API response. The meta object is a list with the following items:

  • count - the number of records in the response

  • labels - a named list of labels for each field

  • dataTypes - a named list describing the data type for each field

  • dataFormats - a named list describing the data format for each field

  • total-count - the total number of records matching the query

  • total-pages - the total number of pages of records matching the query

Usage

ustfd_response_meta_object(response)

Value

a list

Arguments

response

a parsed response returned by ustfd_json_response()

See Also

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