ShyykoSerhiy / spotilocal

⛔️DEPRECATED(see https://github.com/ShyykoSerhiy/spotilocal/issues/7#issuecomment-416002808) Unofficial api for spotify's local web server.
MIT License
38 stars 7 forks source link

Fails with Invalid OAuth token #7

Open Simran-B opened 6 years ago

Simran-B commented 6 years ago

Version: spotilocal@0.4.4

Code:

Spotilocal = require('spotilocal').Spotilocal

const spotilocal = new Spotilocal()
const trackUri = 'spotify:track:5S81KTmjVTeXxVhtBVUm9k'
spotilocal.init().then(spotilocal => {
    return spotilocal.play(trackUri)
}).then(status => {
    console.dir(status)
}).catch(console.error)

Error:

{ error: { type: '4102', message: 'Invalid OAuth token' },
  version: 9,
  client_version: '1.0.85.259.g4ab01679',
  running: true }
ShyykoSerhiy commented 6 years ago

Spotify deprecated(removed) remote old play button.

Remote control of Spotify’s desktop app has been deprecated in favour of full track playback in the browser.

You can read more here https://developer.spotify.com/community/news/2018/07/19/new-updates-to-spotify-play-button/ .

ShyykoSerhiy commented 6 years ago

Unfortunately, this project will no longer work. Added DEPRECATED warning to description.

pavelkeyzik commented 6 years ago

@ShyykoSerhiy Maybe it's better to add your project to the archive?