senfi

1.2.1 • Public • Published

Senfi Node.js Library

The Senfi Node library provides convenient access to the Senfi API from applications in server-side Javascript

Documentation

See the Senfi API docs

Installation

npm install senfi

Usage

The package needs to be initialized with a Senfi API key and secret, which can be created in the Senfi CMS. Initialize using the key values:

const Senfi = require('senfi');
let senfi = new Senfi();
senfi.initialize('api-key','api-key-secret')
  .then(() => console.log('initialized'))
  .catch(error => console.error('Initialization failed:', error.errmsg));

Example usage:

senfi.subscription.get()
  .then(response => console.log(response))
  .catch(error => console.error(error));

Readme

Keywords

Package Sidebar

Install

npm i senfi

Weekly Downloads

0

Version

1.2.1

License

ISC

Unpacked Size

155 kB

Total Files

33

Last publish

Collaborators

  • chengteng-ge