namuol / grooveshark

A node.js package for grooveshark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build status

Grooveshark

This is a package for interacting with the Grooveshark V3 API using node.js.

Installation

npm install grooveshark

Usage

var gs = require('grooveshark')
  , client = new gs('your_api_key', 'your_api_secret');

client.authenticate('your_grooveshark_username', 'you_grooveshark_password', function(err) {
  client.request('someMethod', {param1: 'foobar', param2: 1234}, function(err, status, body) {
    if(err) {
      throw err
    }

    console.log(body);
  });
})

About

A node.js package for grooveshark


Languages

Language:CoffeeScript 96.3%Language:JavaScript 3.7%