rdio-js-api

CommonJS Compliant Rdio JavaScript API

CommonJS Wrapper for Rdio JavaScript API.

rdio = require('rdio-js-api')('api-key-here', 'auth.html')
 
rdio.play('a3032151')
$ npm install rdio-js-api
rdio = require('rdio-api')('api-key-here', 'path/to/auth.html')
rdio.play('a3032151')
rdio.pause()
rdio.onPlayStateChange(function(){
  rdio.state().playing
  // => true/false 
})