sst_return_check: Preprocess the API response

View source: R/utility_functions.R

sst_return_checkR Documentation

Preprocess the API response

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

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 Sept. 9, 2023, 5:06 p.m.