1.1.0 • Published 8 years ago

spotifyr v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

spotifyr Build Status

Retrieve data from spotify public REST API for a search item

works without authentication

Install

npm install --save spotifyr

Usage

const spotifyr = require('spotifyr');

spotifyr('avicii', 'artist', function(error, response) {
	if(error) {
		console.log(error);	
	} else {
		console.log(response);
	}
});

API

search(query, type, callback)

Returns json data for requested query

query

Type: string

Query for requesting data

type

Type: string

Valid types : album, artist, playlist, track

callback

Type: function

Takes two arguments, error and response respectively

License

MIT © Rajika Imal

1.1.0

8 years ago

1.0.0

8 years ago