findParams: findParams

Description Usage Arguments Details Author(s) Examples

Description

Helper function to retrieve valid values for parameters (mostly used internally)

Usage

1
findParams(param)

Arguments

param

Parameter to retrieve

Details

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:

Author(s)

John Coene jcoenep@hotmail.com

Examples

 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)

JohnCoene/youTubeDataR documentation built on May 7, 2019, 11:59 a.m.