sst_call_api_method {serpstatr} | R Documentation |
Make a request to Serpstat API endpoint
Description
Make a request to Serpstat API endpoint
Usage
sst_call_api_method(api_token, api_method, api_params = NULL)
Arguments
api_token |
Serpstat API token from the profile page. |
api_method |
Internal name of API method. |
api_params |
A list of API parameters used by api_method. More information about parameters in the official docs. |
Value
The list with a response data.
Examples
api_params <- list(
query = 'serpstat.com',
page = 1,
size = 5
)
tryCatch({
serpstatr:::sst_call_api_method(
api_token = Sys.getenv('SERPSTAT_API_TOKEN'),
api_method = 'SerpstatLimitsProcedure.getStats',
api_params = api_params
)
})
[Package serpstatr version 0.2.1 Index]