Learn R Programming

SocialMediaLab (version 0.23.2)

AuthenticateWithYoutubeAPI: Note: this function is DEPRECATED and will be removed in a future release.

Description

YouTube API Authentication

Usage

AuthenticateWithYoutubeAPI(apiKeyYoutube)

Arguments

apiKeyYoutube
character string specifying your Google Developer API key.

Value

This is called for its side effect.

Details

OAuth based authentication with the Google API

In order to collect data from YouTube, the user must first authenticate with Google's Application Programming Interface (API). Users can obtain a Google Developer API key at: https://console.developers.google.com

See Also

AuthenticateWithFacebookAPI and AuthenticateWithTwitterAPI for other ways to collect social media data.

Examples

Run this code

## Not run: ------------------------------------
#   # Replace with your Google Developer API Key:
#   my_apiKeyYoutube <- "314159265358979qwerty"
# 
#   apiKeyYoutube <- AuthenticateWithYoutubeAPI(my_apiKeyYoutube)
## ---------------------------------------------

Run the code above in your browser using DataLab