- Compile the project
mvn package
- Run the project
java -cp $KOTLIN/LIB/kotlin-stdlib.jar -jar target/quickstart-email-kotlin-1.0-SNAPSHOT-jar-with-dependencies.jar
-
In the Nylas dashboard, create a new application and set the hosted auth callback URL to
http://localhost:4567/oauth/exchange
-
env variables
NYLAS_CLIENT_ID=
NYLAS_API_KEY=
NYLAS_API_URI=https://api.us.nylas.com
EMAIL=<RECIPIENT_EMAIL_ADDRESS_HERE>
-
Open your browser and go to
http://localhost:4567/nylas/auth
and log in and end user account -
After authenticating an end user account, you can visit the following URLs to get a feel for some of what you can do with the Nylas Email API.
http://localhost:4567/nylas/recent-emails
http://localhost:4567/nylas/send-email