示例#1
0
        public async Task <IActionResult> GetVideo(string spotifyId, string artist, string album, string song)
        {
            try
            {
                var result = await _youTubeServiceWrapper.GetVideo(spotifyId, artist, album, song);

                return(Ok(result));
            }
            catch (Exception e)
            {
                _logger.LogError(e, "Failed to get video", artist, album, song);
                return(BadRequest());
            }
        }