Home Manual Reference Source Repository

Installation

Installation can be done through either npm or yarn.

// Using npm
npm install --save @mapcreator/api

// Using yarn
yarn add @mapcreator/api

After installation the package can be imported as follows:

var m4n = require('@mapcreator/api');

// Do stuff
var auth = new m4n.ImplicitFlow(1);
var api = new m4n.Mapcreator(auth);

or using ES6 import statements:

import {Mapcreator, DummyFlow} from '@mapcreator/api';

// Do stuff
var auth = new DummyFlow();
var api = new Mapcreator(auth);