public string GetMyChannels(YouTubeChannelPartsCollection parts) { NameValueCollection query = new NameValueCollection(); query.Add("part", parts.ToString()); query.Add("mine", "true"); query.Add("access_token", Client.AccessToken); return(SocialUtils.DoHttpGetRequestAndGetBodyAsString("https://www.googleapis.com/youtube/v3/channels", query)); }
public string GetChannelForUsername(YouTubeChannelPartsCollection parts, string userName) { NameValueCollection query = new NameValueCollection(); query.Add("part", parts.ToString()); query.Add("forUsername", userName); query.Add("access_token", Client.AccessToken); query.Add("key", Client.ApiKey); return(SocialUtils.DoHttpGetRequestAndGetBodyAsString("https://www.googleapis.com/youtube/v3/channels", query)); }