Socket
Socket
Sign inDemoInstall

spotify

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    spotify

A Spotify API library for node.js


Version published
Weekly downloads
42
decreased by-10.64%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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'
});

Keywords

FAQs

Last updated on 26 Sep 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc