1 | /* to run: babel-node albums.js */ |
||
2 | |||
3 | global.fetch = require('node-fetch'); |
||
4 | |||
5 | import SpotifyWrapper from '../src/index'; |
||
6 | |||
7 | const spotify = new SpotifyWrapper({ |
||
8 | token: 'BQD6DeDxMyHeNTD5it-1_PNz9rWswGQjFDcxeNIsNknmkR882Z7CgE0GTB6oi1nSFU5RI4ZNxYVpJuJ_vVnJWGKKDvtxVsYUPUALk_8-Aoc5gcemWMOiqCdRHkkzXXhMJ-hTHDtzhcflrKM' |
||
9 | }); |
||
10 | |||
11 | const albums = spotify.search.albums('Incubus'); |
||
12 | |||
13 | albums.then(data => data.albums.items.map(item => console.log(item.name))); |
||
0 ignored issues
–
show
Debugging Code
introduced
by
![]() |
|||
14 |