0.2.10 • Published 3 years ago

@kywagaha/spotify-event-api v0.2.10

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

spotify-event-api

Work in progress. Requires NodeJS 12

Callbacks

var spotifyEventApi = require('@kywagaha/spotify-event-api')
var spotifyApi = new spotifyEventApi.Player();
require('spotify-event-api').event.on(event, response)

current event emitters:

'update-song',
'update-album',
'update-device',
'update-playing-state',
'update-shuffle-state',
'update-repeat-state',
'update-volume',
'update-playing-type'

all return full spotify '/player' body 'progress' emits every second (every api update) with an object:

{
  duration_ms: number,
  progress_ms: number,
  progress_percent: number,
  delta_percent: number,
  delta_ms: number
}

Authorization

0.2.10

3 years ago

0.2.9

3 years ago

0.2.7

3 years ago

0.2.8

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.75

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago