Socket
Book a DemoInstallSign in
Socket

isomorphic-spotify

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isomorphic-spotify

A Spotify API library for node.js and browser which fetches via isomorphic-fetch

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

isomorphic-spotify

API library for the Spotify REST API.

Install

Install it with npm: npm install isomorphic-spotify

API

The following will return promises with response object being json

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

These won't return a promise. Setting a oauth token will make all subsequent api calls with token.

setOAuth: function(token) 
getOAuth: function() 

Example

var spotify = require('isomorphic-spotify');

spotify.search({ type: 'track', query: 'dancing in the moonlight' })
    .then(function(data) {
        // ... do something with data
    })
    .catch(function(err){
        // ... handle error
    });

Keywords

spotify

FAQs

Package last updated on 16 May 2016

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.