Connections {bdpar}R Documentation

Class to manage the connections with YouTube

Description

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.

Details

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>>)

Note

Fields of unused connections will be automatically ignored by the platform.

Methods

Public methods


Method new()

Creates a Connections object.

Usage
Connections$new()

Method startConnectionWithYoutube()

Function able to establish the connection with YouTube.

Usage
Connections$startConnectionWithYoutube()

Method addNumRequestToYoutube()

Function that increases in one the number of request to YouTube.

Usage
Connections$addNumRequestToYoutube()

Method checkRequestToYoutube()

Handles the connection with YouTube.

Usage
Connections$checkRequestToYoutube()

Method getNumRequestMaxToYoutube()

Gets the number of maximum requests allowed by YouTube API.

Usage
Connections$getNumRequestMaxToYoutube()
Returns

Value of number maximum of request to YouTube.


Method clone()

The objects of this class are cloneable with this method.

Usage
Connections$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

bdpar.Options, ExtractorYtbid


[Package bdpar version 3.1.0 Index]