soundclouder

SoundCloud API for Node.js

npm install soundclouder
2 downloads in the last day
18 downloads in the last week
59 downloads in the last month

Table of Contents generated with DocToc

soundclouder.js Build Status

SoundCloud API for Node.js. What else is there to say?

SoundCloud APIs Implemented

  • Connection/Authorization Url
  • OAuth Authorization (/oauth2/token)
  • General GET, PUT, POST and DELETE.

Usage

var sc = require("soundclouder");

// client id, secret and redirect url are the values obtained from http://soundcloud/you/apps
sc.init(sc_client_id, sc_client_secret, sc_redirect_uri);

// code sent by the browser based SoundCloud Login that redirects to the redirect_uri
sc.auth( code, function (error, access_token) 
{
    if(error) 
    {
        console.error(e.message);
    } 
    else 
    {
        console.log('access_token=' + access_token );
    }
});
sc.get('/tracks/' + track_id, access_token, function (data) {

    console.log( data.title );

});

Links

Installation

Global

  • Run: sudo npm install soundclouder -g
  • Usually installed at - /usr/local/lib/node_modules/soundclouder

Project

  • Add "soundclouder": "x.x.x" to the dependencies section of your project's package.json
    • Example "dependencies": { "soundclouder": "x.x.x" }
  • Run npm install in the director with your package.json
  • Usually installed at - PROJECT_DIR/node_modules/soundclouder
npm loves you