private static void Main() { try { var clientId = ConfigurationManager.AppSettings["clientId"]; var secretId = ConfigurationManager.AppSettings["secretId"]; SpotifyApiWrapperInitializer.Initialize(clientId, secretId); var testTrackId = "0aAvVcHH0eN1fnKUkPcZ0y"; ////automated formatting of serializable classes (API models) //var formattedTypes = GetFormattedApiModels(); //DisplayUserPlaylists("mpxx24"); DisplayRecommendedTracks(testTrackId); //DisplayRecommendedAlbums(testTrackId); //DisplayRecommendedArtists(testTrackId); //var features = AudioAnalysisWrapper.GetTrackFeatures(testTrackId); //var analisys = AudioAnalysisWrapper.GetTrackAudioAnalysis(testTrackId); } catch (Exception ex) { WriteLine($"exception type: {ex.GetType()}\nexception message: {ex.Message}"); } ReadLine(); }
protected void Application_Start() { this.logger.Debug("Application start!"); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); var clientId = ConfigurationManager.AppSettings["clientId"]; var secretId = ConfigurationManager.AppSettings["secretId"]; var pastebinApiKey = ConfigurationManager.AppSettings["pastebinApiKey"]; var botName = ConfigurationManager.AppSettings["botName"]; var channelName = ConfigurationManager.AppSettings["channelName"]; var nasaApiKey = ConfigurationManager.AppSettings["nasaApiKey"]; var markovSourceFilePath = ConfigurationManager.AppSettings["markovSourceFilePath"]; var youtubeApiKey = ConfigurationManager.AppSettings["youtubeApiKey"]; var wolframAlphaAppId = ConfigurationManager.AppSettings["wolframAlphaAppId"]; var mailSenderAddress = ConfigurationManager.AppSettings["mailSenderAddress"]; var mailSenderPassword = ConfigurationManager.AppSettings["mailSenderPassword"]; IoC.Initialize(new Module[] { new ApplicationModule(pastebinApiKey, channelName, botName, nasaApiKey, markovSourceFilePath, youtubeApiKey, wolframAlphaAppId, mailSenderAddress, mailSenderPassword) }); SpotifyApiWrapperInitializer.Initialize(clientId, secretId); }