Get the data for any given GUID and return it as a data frame. Note that we use the "ajson" JSON format from the API. The "JSON" format has a more complex structure.
get_data(base_url, api_key, guid, stream = "paged")
base_url | The base URL of the Junar service |
---|---|
api_key | The user's API key for the Junar service |
guid | The GUID of the data set of interest |
stream | The type of data stream of the request. By default we use the paginated stream (stream = "paged"). To get the full unpaginated stream set stream = "unlimited". Please use the latter option with care |
We do use the JSON response to get the fLength
value, which indicates the
length of the dataset. This way we can include a fixed way to get around the
default limit of 1000 rows of the Junar API.
Note that this removes all meta-data from the JSON response given by the API.