Closed macool closed 4 years ago
esto retorna spotify en cada canción, tenemos que evaluar si retornamos todo al cliente o sólo las partes que nos importan
=> "{\"available_markets\":[\"CA\",\"MX\",\"US\"],\"disc_number\":1,\"duration_ms\":232520,\"explicit\":true,\"external_ids\":{\"isrc\":\"USCM50800823\"},\"name\":\"Let It Rock\",\"popularity\":50,\"preview_url\":\"https://p.scdn.co/mp3-preview/29c7931ec5bf0b2d44e71420c52d738a736562f8?cid=e16acd3a7ef344789b1a6cac6c2c8881\",\"track_number\":1,\"album\":{\"album_type\":\"single\",\"available_markets\":[\"CA\",\"MX\",\"US\"],\"copyrights\":null,\"external_ids\":null,\"genres\":null,\"images\":[{\"height\":640,\"url\":\"https://i.scdn.co/image/b02c052d78d9b5fb228924383fd1484ef6e130d3\",\"width\":640},{\"height\":300,\"url\":\"https://i.scdn.co/image/712d2ac5e6e093085f406bf98e2ecce8ce3c461e\",\"width\":300},{\"height\":64,\"url\":\"https://i.scdn.co/image/72e5bca9d58cc69914bd65bf402aaf7626d500ee\",\"width\":64}],\"name\":\"Let It Rock (Remixes)\",\"popularity\":null,\"release_date\":null,\"release_date_precision\":null,\"artists\":[{\"followers\":null,\"genres\":null,\"images\":null,\"name\":\"Kevin Rudolf\",\"popularity\":null,\"top_tracks\":{},\"external_urls\":{\"spotify\":\"https://open.spotify.com/artist/0Chxmm4XMM87mJOHvyiUzL\"},\"href\":\"https://api.spotify.com/v1/artists/0Chxmm4XMM87mJOHvyiUzL\",\"id\":\"0Chxmm4XMM87mJOHvyiUzL\",\"type\":\"artist\",\"uri\":\"spotify:artist:0Chxmm4XMM87mJOHvyiUzL\"}],\"tracks_cache\":null,\"total_tracks\":null,\"external_urls\":{\"spotify\":\"https://open.spotify.com/album/2YYAJxfw9pfWdMbuTBgtRc\"},\"href\":\"https://api.spotify.com/v1/albums/2YYAJxfw9pfWdMbuTBgtRc\",\"id\":\"2YYAJxfw9pfWdMbuTBgtRc\",\"type\":\"album\",\"uri\":\"spotify:album:2YYAJxfw9pfWdMbuTBgtRc\"},\"artists\":[{\"followers\":null,\"genres\":null,\"images\":null,\"name\":\"Kevin Rudolf\",\"popularity\":null,\"top_tracks\":{},\"external_urls\":{\"spotify\":\"https://open.spotify.com/artist/0Chxmm4XMM87mJOHvyiUzL\"},\"href\":\"https://api.spotify.com/v1/artists/0Chxmm4XMM87mJOHvyiUzL\",\"id\":\"0Chxmm4XMM87mJOHvyiUzL\",\"type\":\"artist\",\"uri\":\"spotify:artist:0Chxmm4XMM87mJOHvyiUzL\"},{\"followers\":null,\"genres\":null,\"images\":null,\"name\":\"Lil Wayne\",\"popularity\":null,\"top_tracks\":{},\"external_urls\":{\"spotify\":\"https://open.spotify.com/artist/55Aa2cqylxrFIXC767Z865\"},\"href\":\"https://api.spotify.com/v1/artists/55Aa2cqylxrFIXC767Z865\",\"id\":\"55Aa2cqylxrFIXC767Z865\",\"type\":\"artist\",\"uri\":\"spotify:artist:55Aa2cqylxrFIXC767Z865\"}],\"external_urls\":{\"spotify\":\"https://open.spotify.com/track/2vVc2G9w2JteBgxpSUVwX5\"},\"href\":\"https://api.spotify.com/v1/tracks/2vVc2G9w2JteBgxpSUVwX5\",\"id\":\"2vVc2G9w2JteBgxpSUVwX5\",\"type\":\"track\",\"uri\":\"spotify:track:2vVc2G9w2JteBgxpSUVwX5\"}"
vamos a hacer queries de canciones solamente para mantenerlo sencillo por ahora
@fabricioflores [next]
el query debería en lo posible soportar leer un artista, etc
consultaríamos un 3rd party como soundcloud y retornaríamos al frontend un arreglo con las canciones disponibles