request_table: Send an http request with a query and return the response

Description Usage Arguments Value

View source: R/fetch.R

Description

request_table sends a query to the table endpoint, checks the response, parses the response text as json, and returns the parsed data. If the query syntax is not valid or the request fails for any other reason an error is raised with the response text.

Usage

1

Arguments

query

A valid Stat-Xplore query as a string.

Value

A list of the query results as parsed json.


houseofcommonslibrary/statxplorer documentation built on Sept. 13, 2020, 12:14 a.m.