ifttt
v0.1.2
Published
Create IFTTT channel endpoints with node.
Downloads
9
Readme
ifttt
Enables you to build IFTTT compatible node endpoints with express.
Features
- Channel Status endpoint
- User Info endpoint
- Test Setup endpoint with sample data
- Trigger endpoints with fields including dynamic options & dynamic validation
- Action endpoints with fields including dynamic options
Planned
- Realtime API for Triggers
Install
Install the module via npm:
$ npm install --save ifttt
Usage
// Require the module in your code.
var Ifttt = require('ifttt');
// Create new IFTTT channel.
var iftttChannel = new Ifttt();
// Add triggers & actions to your IFTTT channel.
iftttChannel.registerTrigger(YOUR_TRIGGER);
iftttChannel.registerAction(YOUR_ACTION);
// Add IFTTT channel routes to your express app.
iftttChannel.addExpressRoutes(app);