Learn R Programming

serpstatr (version 0.3.0)

sst_return_check: 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)

Value

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

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.