ifttt-webhooks

1.0.5 • Public • Published

IFTTT-Webhooks

Simple Interface for IFTTT Webhooks in NodeJS with no dependencies

Getting Started

Install:

npm install ifttt-webhooks

Usage:

// require
const iftt_webhooks = require('ifttt-webhooks')

// create an instance
const ifttt = new iftt_webhooks.IFTTT('your_key')

// trigger an event
ifttt.trigger('event_name')

// trigger an event and catch errors
ifttt.trigger('event_name').catch(function(err){console.log(err)})

// trigger an event with parameters
ifttt.trigger('event_name'. {"value1": "data"})

Require:

Add this to your package.json

"dependencies": {
   "ifttt-webhooks": "latest"
 }

Further Reading:

Readme

Keywords

none

Package Sidebar

Install

npm i ifttt-webhooks

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

3.75 kB

Total Files

5

Last publish

Collaborators

  • ajzat34