https://github.com/boneskull/seneca-ifttt-maker
https://github.com/boneskull/seneca-ifttt-maker
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/boneskull/seneca-ifttt-maker
- Owner: boneskull
- License: mit
- Archived: true
- Created: 2016-06-04T09:05:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-23T20:46:47.000Z (about 9 years ago)
- Last Synced: 2025-04-04T06:12:52.829Z (10 months ago)
- Language: JavaScript
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 49
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# seneca-ifttt-maker
[](https://travis-ci.org/boneskull/seneca-ifttt-maker) [](https://www.bithound.io/github/boneskull/seneca-ifttt-maker) [](https://www.bithound.io/github/boneskull/seneca-ifttt-maker) [](https://www.npmjs.com/package/seneca-ifttt-maker)
> Seneca plugin to send data to IFTTT Maker
## Requirements
Node.js >= v6
## Install
```shell
$ npm i seneca seneca-ifttt-maker
```
## Usage
```js
// the plugin will create actions for each event name specified
require('seneca')()
.use(require('seneca-ifttt-maker'), {
events: [
'my_event',
'another_event'
],
key: 'MY_IFTTT_MAKER_KEY'
});
```
## Action Patterns
### Send IFTTT Maker Request
`role:ifttt-maker`, `cmd:send`
**Required** arguments:
- `event` - event as configured via options. `test_event` available by default, if none specified.
*Optional* arguments:
- `method` - `GET` or `POST`
- `value1` - `Value1` value
- `value2` - `Value2` value
- `value3` - `Value3` value
*Returns `undefined` upon success*.
## License
© 2016 [Christopher Hiller](https://boneskull.com). Licensed MIT.