Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

3scale is an API Infrastructure service which handles API Keys, Rate Limiting, Analytics, Billing Payments and Developer Management. Includes a configurable API dashboard and developer portal CMS. More product stuff at http://www.3scale.net/, support information at http://support.3scale.net/.

tree: eae22876a1

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib Overriding .gitignore in ./lib
Octocat-spinner-32 src Removed uneccesary code
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore major cleanup & bump version
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 LICENCE First commit
Octocat-spinner-32 README.md minor update to the README
Octocat-spinner-32 package.json
README.md

3scale integration plugin for JavaScript/CoffeeScript/Node.js applications Build Status

3scale is an API Infrastructure service which handles API Keys, Rate Limiting, Analytics, Billing Payments and Developer Management. Includes a configurable API dashboard and developer portal CMS. More product stuff at http://www.3scale.net/, support information at http://support.3scale.net/.

Requirements

  • libxml2 library

Installation

The module is delivered through the package manager npm, so that the installation should be easy as: npm install 3scale

Testing

To run tests: vows test/* --spec

In the root of the project.

Usage

var Client = require('3scale').Client;

client = new Client("your provider key");

client.authorize({app_id: "your application id", app_key: "your application key"}, function(response){
  sys.log(sys.inspect(response));
});

// Or for reports

var trans = [
              { "app_id": "your application id", "usage": {"hits": 1}},
              { "app_id": "your application id", "usage": {"hits": 1000}}
             ]

client.report(trans, function(response){
  console.log(response);
});
Something went wrong with that request. Please try again.