-
Install the quickstart_webhooks_java folder in your favourite webserver. Make sure to add an empty CLIENT_SECRET to your enviroment variables.
-
Run the project java-webhooks-v3
mvn package
mvn exec:java -Dexec.mainClass=”webhooks” -Dexec.cleanupDaemonThreads=false
-
Grab the client secret generated in step 2 and use it to replace the empty CLIENT_SECRET variable
-
env variables for java-webhooks-v3.rb
export NYLAS_API_KEY=<API_KEY>
export NYLAS_API_URI=<https://api.us.nylas.com>
export EMAIL=<RECIPIENT_EMAIL_ADDRESS_HERE>
export WEBHOOK_URL=<YOUR_WEBHOOK_URL>
-
Open your browser and go to the link generated by your server.
-
Send or recieve emails and you will the webhooks notification showing up on your application main page.