Nothing
context("Get Playlist Items")
test_that("get_playlist_items returns >50 results when requested", {
skip_on_cran()
# Skip if no token file exists
if (!file.exists("token_file.rds.enc")) {
skip("No token file available for API testing")
}
tryCatch({
google_token <- readRDS("token_file.rds.enc")$google_token
options(google_token = google_token)
res <- get_playlist_items(filter = c(playlist_id = "PLrEnWoR732-CN09YykVof2lxdI3MLOZda"), max_results = 55)
expect_true(length(res$items) >= 55)
}, error = function(e) {
skip(paste("API test failed:", e$message))
})
})
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.