spotify-web-api-node
spotify-web-api-node copied to clipboard
A Node.js wrapper for Spotify's Web API.
In the documentation, the first parameter of "_areFollowingPlaylist_" is not specified. In the doc it is written that "_playlistId_", and an array of usernames suffice, but in the implementation it...
Certain classes of errors return non-JSON responses, leading to errors like these: ```console WebapiError: [object Object] at _toError (/node_modules/spotify-web-api-node/src/http-manager.js:48:10) at /node_modules/spotify-web-api-node/src/http-manager.js:72:25 at Request.callback (/node_modules/superagent/lib/node/index.js:905:3) at IncomingMessage. (/node_modules/superagent/lib/node/index.js:1127:20) at Stream.emit (node:events:513:28)...
Hi, Error message triggered by library should be a string, not an object. The following code is the cause of the problem : > https://github.com/thelinmichael/spotify-web-api-node/blob/master/src/http-manager.js#L47 ```js /* Other type of...
I just ran in to this while testing an app with an auth code grant flow before release and thought it might be helpful for others to avoid the hard-to-debug...
https://github.com/thelinmichael/spotify-web-api-node/blob/37a78656198185776ca825b37e2de4a31c2ae5de/examples/get-top-tracks-for-artist.js#L23
```js let spotifyApi = new SpotifyWebApi(); spotifyApi .authorizationCodeGrant(`auth code`) .then(function (data) { console.log('Retrieved access token', data.body['access_token']); spotifyApi.setAccessToken(data.body['access_token']); return spotifyApi.getMe(); }) .then(function (data) { console.log('Retrieved data for ' + data.body['display_name']); console.log('Image...
Bumps [json5](https://github.com/json5/json5) from 2.1.3 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...
I want to get the full list of tracks from a Spotify playlist, but I can only get the first 100. I have around 700 tracks and I am trying...
Wrote some complex logic with searchTracks to look for URI before noticing that getTracks was actually a function. Seemed like it was missing from #more-examples.
1a. Created function addToPlaybackQueue as shown as TBD on README.md. Function adds an item to a user’s playback queue. 1b. Noticed addToQueue endpoint had optional parameter device_id, which could lead...