0.8.1 • Published 11 years ago

soundclouder v0.8.1

Weekly downloads
46
License
-
Repository
github
Last release
11 years ago

Table of Contents generated with DocToc

soundclouder.js Build Status

SoundCloud API for Node.js.

NPM Module Info - https://www.npmjs.org/package/soundclouder

SoundCloud APIs Implemented

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

Usage

// Include the soundclouder library
var sc = require("soundclouder");

// Update the logging level
// See: https://github.com/khilnani/dysf.utils
// Also see: test/test.js
var log = require("dysf.utils").logger
// 0: system, 1: error, 2: warn, 3: event, 4: info, 
// 5: debug, 6: trace. Default is 4 (info)
// Set to debug
log.setLogLevel(5);

// client id, secret and redirect url are the values obtained from 
// <a href="http://soundcloud.com/you/apps">http://soundcloud.com/you/apps</a>
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 (error, 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
0.8.1

11 years ago

0.8.0

11 years ago

0.7.10

11 years ago

0.7.0

11 years ago

0.0.7

12 years ago

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago