Skip to content

Instantly share code, notes, and snippets.

@sthewissen
Last active June 20, 2017 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sthewissen/bee8e071f06a97b2b6b3e1f31da8e536 to your computer and use it in GitHub Desktop.
Save sthewissen/bee8e071f06a97b2b6b3e1f31da8e536 to your computer and use it in GitHub Desktop.
Constants used for YouTube embed sample
// 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