statit_js
v1.0.0-beta.1
Published
A package to access the [Statit](https://gostatit.com) API
Downloads
2
Readme
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.