Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
NodeJS module for Rdio
JavaScript HTML CSS
branch: master
Failed to load latest commit information.
grunt Setup grunt.
test
.gitignore Initial commit.
.npmignore Release 1.5.0
Gruntfile.js Upgraded some stuff.
History.md Release 1.5.2
LICENSE Setup grunt.
package.json add description, repository, and bugs to package.json
rdio.js
readme.md Updated readme.

readme.md

NPM version Dependency Status

node-rdio is a wrapper for the rdio web service api.

Installation

npm install rdio --save

Future Changes - Please Read

This library is over 3 years old now. At the time I wrote it I was still fairly new to nodejs. Version 2 is coming!

Planned changes:

  • No longer required to pass in oauth tokens every request
  • getRequestToken & getAccessToken will be deprecated
  • New config() method for setup
  • Promises & event support
  • Shortcut methods for api endpoints
  • Data validation
  • Error handling

I'm open for requests. If you'd like to see something added, please open an issue.

Usage

var rdio = require('rdio')(config);

rdio.api(oauth_access_token, oauth_access_token_secret, {
    method: 'getTopCharts',
    type: 'Track',
    count: 10
}, callback);

Methods

api(access_token, secret_token, payload, callback)

  • access_token string - Oauth access token secret
  • secret_token string - Oauth access token secret
  • payload object - Data to sent to rdio. See rdio web service api documentationn for properties.
  • callback function(err, data, response) - Called when request is completed.

getRequestToken(callback)

  • callback function(error, oauth_token, oauth_token_secret, results)

getAccessToken(auth_token, auth_token_secret, oauth_verifier, callback)

  • auth_token string
  • auth_token_secret string
  • oauth_verifier string
  • callback function(error, oauth_token, oauth_token_secret, results)

Config

  • rdio_api_key string - rdio api key
  • rdio_api_shared string - rdio api shared secret
  • callback_url string - url oauth request will redirect to
Something went wrong with that request. Please try again.