A Hapi plugin for receiving requests from the Dropbox webhooks API.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE.md
README.md
package.json

README.md

hapi-dropbox-webhooks

Build Status

A Hapi plugin for receiving notifications from the Dropbox webhooks API.

Installation

npm install hapi-dropbox-webhooks

Usage

var DropboxWebhooks = require('hapi-dropbox-webhooks')

server.register({
  register: DropboxWebhooks,
  options: options,
})

Options

  • appSecret String

    The app secret. Required.

  • onNotification Function

    The callback to be invoked when a notification is received. The function has the signature function(payload). Required.

  • path String

    The path to listen on. Required.

Tests

$ npm test

License

See LICENSE.