Description Usage Arguments Details Author(s) Examples
Helper function to retrieve valid values for parameters (mostly used internally)
1 | findParams(param)
|
param |
Parameter to retrieve |
Given the pletoric number of parameters a this helper function is provided.
Please see the
official documentation
for more information. Note that not all parameters (i.e.: channel.id
)
cannot, by nature, be tested.
Valid parameters:
order
video.dimension
video.caption
video.duration
video.definition
video.embeddable
video.syndicated
video.license
video.type
safe.search
event.type
channel.type
type
text.format
moderation.status
John Coene jcoenep@hotmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
# Authenticate
token <- youOAuth(client.id = "something.apps.googleusercontent.com",
client.secret = "XxxXX1XxXxXxxx1xxx1xxXXX")
# find valid values for video.dimension
dims <- findParams(param = "video.dimension")
# set seed for reproducability
set.seed(19880525)
# fetch data using parameter
cats <- searchVideos(token, query = "cats",
video.dimension = sample(dims, 1))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.