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.
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.
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>>)
bdpar.Options
, ExtractorYtbid