GithubHelp home page GithubHelp logo

node-rdio's Introduction

rdio-simple for JavaScript (node.js)

An Rdio client including a built-in OAuth implementation.

It has been tested on the 0.4 branch of node.

To install the library simply add the om.js and rdio.js files to your source directory.

Usage

To use the library just load the Rdio class from the rdio module:

var Rdio = require("rdio");

Create an Rdio instance passing in a tuple with your consumer key and secret:

var rdio = new Rdio(["consumerkey", "consumersecret"]);

Make API calls with the call(methodname, params) method:

rdio.call('get', {'keys': 'a254895,a104386'});

Authenticate and authorize with the beginAuthentication and completeAuthentication methods.

The current token (either request or access) is stored in rdio.token as an array with the token and token secret.

Examples

Both examples authenticate and then list the user's playlists. They use credentials stored in rdio_consumer_credentials.js.

NOTE: web-based.js depends on Link. Install the dependency in the examples directory by running:

npm install link

node-rdio's People

Contributors

creatorrr avatar

Stargazers

Marcos Rava avatar  avatar  avatar Josh Gummersall avatar Devin Sevilla avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.