# iftttmaker

> Sending requests to IFTTT Maker channel with node.js

Latest version **1.3.0** (published 2017-12-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install iftttmaker
pnpm add iftttmaker
yarn add iftttmaker
bun add iftttmaker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2017-12-02 |
| First published | 2015-10-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Petr Kolář |
| Maintainers | kolarcz |
| Keywords | ifttt, maker |

## Links

- npm: https://www.npmjs.com/package/iftttmaker
- Repository: https://github.com/kolarcz/node-iftttmaker
- Homepage: https://github.com/kolarcz/node-iftttmaker#readme
- Issues: https://github.com/kolarcz/node-iftttmaker/issues
- npm.io page: https://npm.io/package/iftttmaker

## Dependencies (1)

- [https-proxy-agent](https://npm.io/package/https-proxy-agent.md) ^2.1.1

## Recent versions

- 1.3.0 (latest) — 2017-12-02
- 1.2.1 — 2016-08-21
- 1.2.0 — 2016-08-18
- 1.1.0 — 2016-01-25
- 1.0.5 — 2015-10-11
- 1.0.4 — 2015-10-11
- 1.0.3 — 2015-10-11

## README

# 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
```javascript
var apiKey = 'VJWqWLSLX3gfbvhR1bmYfi';
var IFTTTMaker = require('iftttmaker')(apiKey);

IFTTTMaker.send('notify', 'hello', 'world').then(function () {
  console.log('Request was sent');
}).catch(function (error) {
  console.log('The request could not be sent:', error);
});
```

```javascript
var apiKey = 'VJWqWLSLX3gfbvhR1bmYfi';
var IFTTTMaker = require('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.send(request, function (error) {
  if (error) {
    console.log('The request could not be sent:', error);
  } else {
    console.log('Request was sent');
  }
});
```

---
_Source: https://npm.io/package/iftttmaker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
