Description Usage Arguments Details Value Note Author(s) See Also Examples
View source: R/AuthenticateWithYoutubeAPI.R
YouTube API Authentication
1 | AuthenticateWithYoutubeAPI(apiKeyYoutube)
|
apiKeyYoutube |
character string specifying your Google Developer API key. |
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
This is called for its side effect.
In the future this function will enable users to save the API key in
working directory, and the function will automatically look for a locally
stored key whenever it is called without apiKeyYoutube
argument.
Timothy Graham <timothy.graham3@uq.net.au> & Robert Ackland <robert.ackland@anu.edu.au>
AuthenticateWithFacebookAPI
and
AuthenticateWithTwitterAPI
for other ways to collect social media
data.
1 2 3 4 5 6 7 | ## Not run:
# Replace with your Google Developer API Key:
my_apiKeyYoutube <- "314159265358979qwerty"
apiKeyYoutube <- AuthenticateWithYoutubeAPI(my_apiKeyYoutube)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.