コード例 #1
0
        public void add_spotify_track_name_and_id_to_question()
        {
            var service = new PlaybackService();
            var result  = service.SearchForTrack("https://api.spotify.com/v1/search?q=popular&type=track").Result;

            Question question = new Question();

            question.TrackQuestion = "Vad heter låten?";
            question.Answer        = "Popular";
            question.TrackId       = result.tracks.items[0].id;
            question.TrackTitle    = result.tracks.items[0].name;
        }
コード例 #2
0
 public void get_spotify_tracks_as_root_object()
 {
     var service = new PlaybackService();
     var result  = service.SearchForTrack("https://api.spotify.com/v1/search?q=popular&type=track").Result;
 }