sst_return_check: Preprocess the API response

Description Usage Arguments Value

View source: R/utility_functions.R

Description

Every API call returns a JSON object. This object is transformed to a list. Depending on return_method parameter the data element of this list will be a list or data.frame.

Usage

1
sst_return_check(response_content, return_method)

Arguments

response_content

The result of sst_call_api_method call.

return_method

Accepted values are 'list' to return data object as list or 'df' to return data object as data.frame.

Value

response_content with a data object as list or data.frame.


serpstatr documentation built on Jan. 11, 2021, 1:36 a.m.