This example application listens for webhook events and logs them directly to the screen, first as the entire JSON blob that is received, then as each Delta, then as the particular data as a hash
Running the Example
- Clone the repository
- Install the dependencies by using
- Get a Nylas App ID and App Secret from the Nylas Dashboard
- Run the app web server:
bundle exec ruby demo-app.rb
- Use a service like
ngrokto expose your local app server to the public internet.
- Set up a webhook to point to the public url for your local instance at the path
/webhook-event-receivedby following the instructions for creating a webhook.
- Perform some kind of interactions that would trigger the webhook.