Esempio n. 1
0
 private bool CheckIfMapIsUploaded(string filename)
 {
     if (SubstitutingWebPage)
     {
         return(MapListUploadCheck.Contains(filename));
     }
     else
     {
         return(SearchClass.CheckDataExistsOnWebPage(ServerMapListUrl, filename));
     }
 }
Esempio n. 2
0
        private string GetVideoData(string ID)
        {
            try
            {
                string header = "https://www.googleapis.com/youtube/v3/videos?id=";

                string Key     = "&key=" + ApiKey + "";
                string trailer = "&fields=items(contentDetails,snippet(title))&part=snippet,contentDetails";
                string WebData = SearchClass.GetWebPageAsString(header + ID + Key + trailer);
                Console.WriteLine(WebData);
                return(WebData);
            }
            catch
            {
                return(null);
            }
        }