spotify

0.3.0 • Public • Published

node-spotify

Extremely simple (and somewhat hackish) API library for the Spotify REST API.

Install

The easiest way to use node-spotify is to install it with npm: npm install spotify

API

Currently, there's only three (useful) methods available:

lookup: function({ type: 'artist OR album OR track', id: 'Spotify ID Hash' }, hollaback)
search: function({ type: 'artist OR album OR track', query: 'My search query' }, hollaback)
get: function(query, hollaback) -- See http://developer.spotify.com/en/metadata-api/overview/

Example

var spotify = require('spotify');
 
spotify.search({ type: 'track', query: 'dancing in the moonlight' }, function(err, data) {
    if ( err ) {
        console.log('Error occurred: ' + err);
        return;
    }
 
    // Do something with 'data'
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    39
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.3.0
    39
  • 0.2.0
    3
  • 0.1.0
    1

Package Sidebar

Install

npm i spotify

Weekly Downloads

35

Version

0.3.0

License

none

Last publish

Collaborators

  • peol