Exemplo n.º 1
0
        public static async Task Main()
        {
            Console.InputEncoding = Encoding.Unicode;
            Console.WriteLine("Pesquisa de gênero musical de artistas");
            Console.Write("Informe o caminho do csv sem cabeçalho:");
            string filePath = Console.ReadLine();

            _spotify = Spotify.GetSpotifyClient;
            await GetArtistGenre(filePath);
        }
 private static void TestSerializeArtist(this SpotifyClient client)
 {
     /*List<String> genres = new List<String> { "chillwave", "grave wave", "metropopolis" };
      * Dictionary<String, String> externalURLs = new Dictionary<String, String>();
      * externalURLs.Add("Spotify", "http://...");
      * Dictionary<String, object> followers = new Dictionary<String, object>();
      * followers.Add("follower_count", 131331);
      * Artist grimes = new Artist("Grimes", "053q0ukIDRgzwTr4vNSwab", followers, genres, 75, externalURLs);
      * string serialized = JsonConvert.SerializeObject(grimes);
      *
      * using (StreamWriter writer = new StreamWriter("testdata.txt"))
      * {
      *  writer.WriteLine(serialized);
      * }*/
 }
Exemplo n.º 3
0
 static SpotifyClientService()
 {
     Client  = new SpotifyClient();
     Country = "US"; //TODO:  Determine the user's current market.
 }
 public void RefreshToken()
 {
     client = new SpotifyClient(GetAccessToken());
 }
 public Spotify()
 {
     client = new SpotifyClient(GetAccessToken());
 }