cyfe

1.0.1 • Public • Published

Cyfe

Simple wrapper to talk with the Cyfe API.

Installation

$ npm i cyfe

Examples

First, add a Push API widget (Add Widget > Custom > Push API) and find your ID.

const Cyfe = require('cyfe');
const cyfe = new Cyfe({
   id: '<your widget key>', // e.g. 5df77205376f07353893125957962
});

cyfe.pushIncrement({
  key: 'Activations', // Can be any key. This will show up in the chart.
}).then(() => {
  console.log('Incremented by 1');
}).catch(err => {
  console.error('Error:', err);
});

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i cyfe

    Weekly Downloads

    1

    Version

    1.0.1

    License

    none

    Unpacked Size

    2.85 kB

    Total Files

    5

    Last publish

    Collaborators

    • weejewel