Skip to content

v9.2.5

Latest
Compare
Choose a tag to compare
@scientific-dev scientific-dev released this 11 Nov 13:20
· 3 commits to master since this release

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