Git Product home page Git Product logo

Comments (2)

amarcher avatar amarcher commented on July 30, 2024

Created a pull request: #65

from spotify-web-api-node.

JMPerez avatar JMPerez commented on July 30, 2024

@amarcher The endpoint for replacing all tracks in a playlist doesn't require range_start. It seems to work for me:

var spotifyApi = new SpotifyWebApi();
spotifyApi.setAccessToken('my_access_token');
spotifyApi.replaceTracksInPlaylist('jmperezperez', '01kNoYcRkCcEKaqEW7hXCR', [
  'spotify:track:4kJP8Z888wREJ8bRMWNMuk',
  'spotify:track:16taQAqrrfqCwbkbKFr2OH'
]).then(function(data) {
    console.log(data);
  }, function(err) {
    console.log(err);
  });

outputs

{ body: '',
  headers:
   { server: 'nginx',
     date: 'Mon, 27 Jun 2016 17:24:08 GMT',
     'content-length': '0',
     connection: 'close',
     'cache-control': 'private, max-age=0',
     'access-control-allow-origin': '*',
     'access-control-allow-methods': 'GET, POST, OPTIONS, PUT, DELETE',
     'access-control-allow-credentials': 'true',
     'access-control-max-age': '604800',
     'access-control-allow-headers': 'Accept, Authorization, Origin, Content-Type',
     'x-content-type-options': 'nosniff',
     'strict-transport-security': 'max-age=31536000;' },
  statusCode: 201 }

What is the value of your trackIds variable?

Since there doesn't seem to be an issue with this function, I will close the issue for now. But feel free to reopen it if you want to add any extra information.

from spotify-web-api-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.