iftttmaker
Sending requests to IFTTT Maker channel with node.js
Instalation
npm install iftttmaker
Methods
require('iftttmaker')(apiKey)
Creates an instance of the IFTTTMaker with IFTTT Maker apiKey.
IFTTTMaker.send(event [, value1 [, value2 [, value3]]] [, callback(error)])
Sends a request with specified event and values value1, value2 and value3 and return Promise. You can also use callback.
IFTTTMaker.send({ event: event, values: { value1: value1, ... value3 }} [, callback(error)])
Another option with params as object.
IFTTTMaker.setProxy(proxyAddress)
Set proxy to connect to.
Examples
var apiKey = 'VJWqWLSLX3gfbvhR1bmYfi';var IFTTTMaker = apiKey; IFTTTMaker;
var apiKey = 'VJWqWLSLX3gfbvhR1bmYfi';var IFTTTMaker = apiKey; // do you need to connect via proxy?// IFTTTMaker.setProxy('https://10.0.0.3:1234'); var request = event: 'notify' values: value1: 'hello' value2: 'world' ; IFTTTMaker;