Learn R Programming

SocialMediaLab (version 0.19.0)

AuthenticateWithYoutubeAPI: YouTube API Authentication

Description

OAuth based authentication with the Google API

Usage

AuthenticateWithYoutubeAPI(apiKeyYoutube)

Arguments

apiKeyYoutube
character string specifying your Google Developer API key.

Value

  • This is called for its side effect.

Details

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
# Replace with your Google Developer API Key:
  my_apiKeyYoutube <- "314159265358979qwerty"

  apiKeyYoutube <- AuthenticateWithYoutubeAPI(my_apiKeyYoutube)

Run the code above in your browser using DataLab