Searchโ€ฆ
โœจ
Start with the module

Installation

You can simply install dependence on your project from NPM:
1
$ npm install night-api
Copied!

Start

Importation

1
// ES6 (includes typings)
2
import { NightAPI } from 'night-api';
3
โ€‹
4
// CommonJS
5
const { NightAPI } = require('night-api');
Copied!

Initialization

To use the API, you need an authentication key that you can get by connecting or register to Night-APIโ€‹
1
const api = new NightAPI('YOUR_API_KEY');
Copied!
Export as PDF
Copy link