1.0.0-beta.1 • Published 1 year ago

statit_js v1.0.0-beta.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

statit_js

A package to access the Statit API

Installation

To install the current release:

$ npm i statit_js

Quick usage

To use the Statit REST API methods, first authenthicate yourself with your username and API token (see Signing-in):

const { CoreAPI } = require('statit_js');

const statitAPI = new CoreAPI('<username>', '<api_key>');

GET, LIST and DELETE actions for collections and series are available in reference-by-ID format:

let data = await statitAPI.getSerie('<serie_id>');

Alongside with the remaining PUT and all their respective batch actions, they are also available in standard JSON request format:

statitAPI.putSerieJSON({
    'id': '<serie_id>',
    ...
});

For the full list of methods and their detailed arguments, see the JavaScript Documentation.

1.0.0-beta.1

1 year ago

1.0.0-beta

1 year ago