Javascript

Install

Install Moonland using npm:

  npm install --save moonland-client

or yarn if you fancy:

  yarn add moonland-client

Configure

Configuring the Moonland client is easy:

  import Moonland from 'moonland-client';

  const client = new Moonland({ apiKey: '<YOUR_API_KEY>', defaults, ...options });

We recommend setting the Moonland client as a Singleton in your application for performance reasons. Check the documentation for the full API reference.