findParams: findParams

Description Usage Arguments Details Author(s) Examples

View source: R/find_params.R

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 [email protected]

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 4, 2018, 8:05 a.m.