Last active
June 20, 2017 14:03
-
-
Save sthewissen/bee8e071f06a97b2b6b3e1f31da8e536 to your computer and use it in GitHub Desktop.
Constants used for YouTube embed sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get your API Key @ https://console.developers.google.com/apis/api/youtube/ | |
const string ApiKey = "AIzaSyB2Hu4D97zOB8f410cwT2rCc6JnmwoLCAo"; | |
const string ChannelId = "{PUT YOUR API KEY HERE}"; | |
// Documentation @ https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.list | |
string channelUrl = $"https://www.googleapis.com/youtube/v3/search?part=id&maxResults=20&channelId={ChannelId}&key={ApiKey}"; | |
string detailsUrl = "https://www.googleapis.com/youtube/v3/videos?part=snippet,statistics&key=" + ApiKey + "&id={0}"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment