Description Usage Arguments Format Details Methods Private fields See Also
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.
1 | Connections$new(keysPath)
|
keysPath |
(character) Path of the .ini file that contains the keys. |
An object of class R6ClassGenerator
of length 24.
The way to indicate the keys of youtube and twitter has to be through an .ini file that contains the following structure:
[twitter]
ConsumerKey=YourConsumerKey
ConsumerSecret=YourConsumerSecret
AccessToken=YourAccessToken
AccessTokenSecret=YourAccessTokenSecret
[youtube]
app_id=YourAppId
app_password=YourAppPassword
getTwitterToken Getter of twitterToken.
Usage
getTwitterToken()
Value
Value of twitterToken.
startConnectionWithTwitter Function that establishes the connection to twitter. If the connection has not been established, the keys necessary to make the connection are indicated in the setup_twitter_oauth function. Then it is indicated that the connection has been established.
Usage
startConnectionWithTwitter()
checkRequestToTwitter Function that controls the connection with twitter. If the limit of twitter requests has been exceeded, 15 minutes are expected.
Usage
checkRequestToTwitter()
startConnectionWithYoutube Function that establishes the connection to youtube. If the connection has not been established, the keys necessary to make the connection are indicated in the yt_oauth function. Then it is indicated that the connection has been established.
Usage
startConnectionWithYoutube()
addNumRequestToYoutube Function that increases in one the number of request to youtube.
Usage
addNumRequestToYoutube()
checkRequestToYoutube Function that controls the connection with youtube. If the limit of youtube requests has been exceeded, 15 minutes are expected.
Usage
checkRequestToYoutube()
getNumRequestMaxToYoutube Getter of num max of from Youtube.
Usage
getNumRequestMaxToYoutube()
Value
Value of num max of from Youtube.
keys (list) The keys of twitter and youtube.
numRequestToYoutube (numeric) Indicates the number of requests made.
numRequestMaxToYoutube (numeric) Indicates the maximum number of requests with Youtube.
connectionWithYoutube (logical) Indicates if the connection has been established with Youtube.
connectionWithTwitter (logical) Indicates if the connection has been established with Twitter.
twitterToken (Token) Token to establish the connection to twitter.
ExtractorTwtid
, ExtractorYtbid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.