Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.gitignore Add webhooks example express app Aug 26, 2016
config.js.template Add webhooks example express app Aug 26, 2016
index.js move example webhooks 200 resp to under error resp Jul 10, 2019
package.json Add webhooks example express app Aug 26, 2016
readme.md Add webhooks example express app Aug 26, 2016

readme.md

Nylas Webhooks

This tiny express app is a simple example of how to use Nylas' webhooks feature. This app correctly responds to Nylas' challenge request when you add a webhook url to the developer dashboard. It also verifies any webhook notification POST requests by Nylas and prints out some information about the notification.

Dependencies

ngrok

ngrok makes it really easy to test callback urls that are running locally on your computer.

node / npm

Make sure node and npm are installed.

Initial Setup

npm install

Running the app

First, make sure ngrok is running with the same port that the local express app is running.

ngrok http 1234

Next, run the express app.

node index.js

Follow the instructions that are printed to the console.

You can’t perform that action at this time.