Description Usage Arguments Value Examples
Get the status and meta data of a specific GTmetrix test. Returns the associated report instead, if the report is already completed.
1 |
test_id |
ID of a GTmetrix test. (string) |
api_key |
An active GTmetrix API key. (string) |
wait_for_completion |
Whether the function should wait for the completion of the test. If TRUE (default), the report associated with the test ID will be requested in roughly 3 second intervals and returned, when successful. If FALSE, the meta data of the test will be returned. (TRUE, FALSE) |
A data.frame object that contains either the test meta data or the GTmetrix report (if it's already completed)
1 2 3 4 5 | ## Not run: output_table <- get_test(
test_id = "TEST_ID",
api_key = "API_KEY"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.