edmunds-api-limiter

0.0.1 • Public • Published

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.

Package Sidebar

Install

npm i edmunds-api-limiter

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • badmark