badmark / edmunds-api-limiter

Node.js client for the Edmunds public API with rate limiter (Max 4 calls per second).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

edmunds-api-limiter

Node.js client for the Edmunds public API with rate limiter (Max 4 calls per second).

Based on node-edmunds-api.

Installation

    npm install edmunds-api-limiter

Usage

First, include the client and instantiate with configuration

    var EdmundsClient = require('edmunds-api-limiter');
    var client = new EdmundsClient({ apiKey: 'MY-API-KEY' });

Then, you can call methods on the client, e.g.

    client.decodeVin({ vin: 'SOME-VIN-HERE' }, function(err, res) {
      console.log(res.make);
      console.log(res.model);
    });

You can take a peek at the unit tests for example usage and example responses. Go to http://developer.edmunds.com to get your API key.

Notes

The client is API V2 compatible.

License

MIT, do your worst.

About

Node.js client for the Edmunds public API with rate limiter (Max 4 calls per second).


Languages

Language:JavaScript 100.0%