v9.2.5
- Properly reject the promise in client initialisation. #167
- Handle The access token expired api error and refresh token. #189 #190
- Add a parameter to
UserClient.getPlaylists
to fetch all playlists at once. #168
const { Client } = require('spotify-api.js');
const client = await Client.create({
onFail(error) {
console.log(error);
},
token: {
clientID: 'id', // Your spotify application client id.
clientSecret: 'secret', // Your spotify application client secret.
...
}
});
Released: 11th November 2022