Nothing
#' Start a website audit
#'
#' Starts a project website audit with the current audit settings. Uses default
#' audit settings if no settings were changed.
#'
#' @section API docs:
#' Check all the values for request and response fields \href{https://api-docs.serpstat.com/docs/serpstat-public-api/bxdwdayrka3kf-start}{here}.
#'
#' @section API credits consumption: 1 audit credit for each checked page.
#'
#' @param api_token (required) Serpstat API token from
#' \href{https://serpstat.com/users/profile/}{your profile}. Default is Sys.getenv('SERPSTAT_API_TOKEN').
#' @param project_id (required) ID of the project in Serpstat.
#' @param return_method (optional) Accepted values are 'list' (default) to
#' return data object as list or 'df' to return data object as data.frame.
#' @return Returns the ID of the audit report.
#' @examples
#' \dontrun{
#' sst_au_start(
#' project_id = 12345
#' )$data$reportId
#' }
#' @export
sst_au_start <- function(api_token = Sys.getenv('SERPSTAT_API_TOKEN'), project_id = NULL, return_method = 'list'){
api_params <- list(projectId = project_id)
response_content <- sst_call_api_method(
api_token = api_token,
api_method = 'AuditSite.start',
api_params = api_params
)
sst_return_check(response_content, return_method)
}
#' Website audit summary
#'
#' Returns the basic stats for the finished audit returns, including number of
#' checked pages, issues by priority, domain optimization score.
#'
#' @section API docs:
#' Check all the values for request and response fields \href{https://api-docs.serpstat.com/docs/serpstat-public-api/uup6axm96za8m-get-basic-info}{here}.
#'
#' @section API credits consumption: 0.
#'
#' @param api_token (required) Serpstat API token from
#' \href{https://serpstat.com/users/profile/}{your profile}. Default is Sys.getenv('SERPSTAT_API_TOKEN').
#' @param report_id (required) ID of the audit report to get data from.
#' @param return_method (optional) Accepted values are 'list' (default) to
#' return data object as list or 'df' to return data object as data.frame.
#' @return Returns the basic metrics for audited website.
#' @examples
#' \dontrun{
#' sst_au_get_summary(
#' report_id = report_id
#' )$data
#' }
#' @export
sst_au_get_summary <- function(api_token = Sys.getenv('SERPSTAT_API_TOKEN'), report_id = NULL, return_method = 'list'){
api_params <- list(reportId = report_id)
response_content <- sst_call_api_method(
api_token = api_token,
api_method = 'AuditSite.getBasicInfo',
api_params = api_params
)
sst_return_check(response_content, return_method)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.