tejashah88 / node-meraki-dashboard

A modern node.js client library for using the Meraki Dashboard API.
MIT License
21 stars 4 forks source link
cisco cisco-meraki client-library dashboard-api meraki meraki-dashboard nodejs

node-meraki-dashboard

NPM Version Build Status Coverage Status

A modern node.js client library for using the Meraki Dashboard API. Supports a minimum of node v6.

Documentation

Getting started

Installing

npm install --save node-meraki-dashboard

Using Promises

const dashboard = require('node-meraki-dashboard')(apiKey);
dashboard.organizations.list()
  .then(data => console.log(data))
  .catch(error => console.log(error));

Using Async/Await

const dashboard = require('node-meraki-dashboard')(apiKey);

(async function() {
  try {
    const orgList = await dashboard.organizations.list();
    console.log(orgList);
  } catch (error) {
    console.log(error);
  }
})();

Development / Contributing

See the CONTRIBUTING guide for getting started with making modifications to this library.

Setup & Testing

git clone https://github.com/tejashah88/node-meraki-dashboard.git
cd node-meraki-dashboard
npm install
npm test

API coverage tool

The API coverage tool is used for reporting endpoints that are not implemented by this library. It fetches the endpoints from the official documentation and checks against the current codebase and finally generates a fancy table of the missing endpoints needed.

Usage

npm run api-coverage