build_trakt_url | R Documentation |
build_trakt_url
assembles a trakt.tv API URL from different arguments.
The result should be fine for use with trakt_get, since that's what this
function was created for.
build_trakt_url(..., validate = FALSE)
... |
Unnamed arguments will be concatenated with |
validate |
|
A URL: character
of length 1. If validate = TRUE
, also a message
including the HTTP status code return by a HEAD
request.
Please be aware that the result of this function is not verified to be
a working trakt.tv API URL unless validate = TRUE
, in which case a HEAD
request is performed that does not actually receive any data, but from its
returned status code the validity of the URL can be inferred.
Other utility functions:
pad_episode()
build_trakt_url("shows", "breaking-bad", extended = "full")
build_trakt_url("shows", "popular", page = 3, limit = 5)
# Path can also be partially assembled already
build_trakt_url("users/jemus42", "ratings")
# Validate a URL works
build_trakt_url("shows", "popular", page = 1, limit = 5, validate = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.