View source: R/fetch_wave_data.R
fetch_wave_data | R Documentation |
Retrieves accessibility analysis data either from WAVE API or local JSON files
fetch_wave_data(
input,
api_key = NULL,
report_type = 1,
is_json = FALSE,
delay = 1
)
input |
Character vector. Either URLs to analyze or paths to JSON files |
api_key |
Character string. WAVE API key (required for URL analysis) |
report_type |
Integer. WAVE report type (1-4):
|
is_json |
Logical. Whether input contains JSON file paths (default: FALSE) |
delay |
Numeric. Delay between API calls in seconds (default: 1) |
List of WAVE analysis results
## Not run:
# Fetch from URLs
results <- fetch_wave_data(
input = c("https://example.com", "https://example.org"),
api_key = "your_api_key"
)
# Load from JSON files
json_results <- fetch_wave_data(
input = c("site1.json", "site2.json"),
is_json = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.