Connections | R Documentation |
The tasks of the functions that the Connections
class has are to establish the connections and control the number of requests
that have been made with the API of YouTube.
The way to indicate the keys of YouTube has to be through fields of bdpar.Options variable:
[youtube]
- bdpar.Options$set("youtube.app.id", <<app_id>>)
- bdpar.Options$set("youtube.app.password", <<app_password>>)
Fields of unused connections will be automatically ignored by the platform.
new()
Creates a Connections
object.
Connections$new()
startConnectionWithYoutube()
Function able to establish the connection with YouTube.
Connections$startConnectionWithYoutube()
addNumRequestToYoutube()
Function that increases in one the number of request to YouTube.
Connections$addNumRequestToYoutube()
checkRequestToYoutube()
Handles the connection with YouTube.
Connections$checkRequestToYoutube()
getNumRequestMaxToYoutube()
Gets the number of maximum requests allowed by YouTube API.
Connections$getNumRequestMaxToYoutube()
Value of number maximum of request to YouTube.
clone()
The objects of this class are cloneable with this method.
Connections$clone(deep = FALSE)
deep
Whether to make a deep clone.
bdpar.Options
, ExtractorYtbid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.