Socket
Socket
Sign inDemoInstall

isomorphic-spotify

Package Overview
Dependencies
7
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
7
decreased by-36.36%
Maintainers
1
Install size
579 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 16 May 2016

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