1.1.0 • Published 7 years ago
firebase-webhook v1.1.0
firebase-webhook
firebase-webhook provides the ability to send WebHooks based on updates to a specified path in a Firebase Realtime Database.
Installation
This module is installed via NPM:
$ npm install --save firebase-webhook
Usage
Import the module
const fbwebhook = require('firebase-webhook)';
Create a subscription
const webhookOpts = {
endpoint: 'https://requestb.in/abcdef',
headers: {"X-Hello" : "World"},
data: ['name', 'email']
}
fbwebhook.subscribe('users/', webhookOpts);
API
Subscribe
fbwebhook.subscribe(path : String, opts: Object);
Todos
- Test coverage
License
MIT