node-spotify-integration

Lib que facilita a integração aplicação-spotify

Usage no npm install needed!

<script type="module">
  import nodeSpotifyIntegration from 'https://cdn.skypack.dev/node-spotify-integration';
</script>

README

node-spotify-integration

library that aims to make communication with spotify more transparent

Example

const service = require('node-spotify-integration')(client_id, client_secret)

or

const Service = require('node-spotify-integration')
const service = Service(client_id, client_secret)

methods

albums

service.albums.byId('album_id')
service.albums.search('album_name')
service.albums.several('album_id, album_id')

artists

service.artists.byId('artist_id')
service.artists.releated('artist_id')
service.artists.search('artist_name')
service.artists.several('artist_id, artist_id')

tracks

service.tracks.byId('track_id')
service.tracks.search('track_name')
service.tracks.several('track_id, track_id')

Return

success

{
  status: ,
  data: 
}

error

{
  status: ,
  data: {
    error:
  }
}