Skip to content

nylas-samples/quickstart-webhook-kotlin

Repository files navigation

How to run

  1. Install the quickstart_webhooks_kotlin folder in your favourite webserver. Make sure to add an empty CLIENT_SECRET to your enviroment variables.

  2. Run the project kotlin-create-webhooks

mvn package
java -jar target/kotlin-create-webhooks-1.0-SNAPSHOT-jar-with-dependencies.jar
  1. Grab the client secret generated in step 2 and use it to replace the empty CLIENT_SECRET variable

  2. 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>
  1. Open your browser and go to the link generated by your server.

  2. Send or recieve emails and you will the webhooks notification showing up on your application main page.

About

Quickstart Webhook Guide for Kotlin

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published