- Install the dependencies
pip3 install Flask, dotenv- Run the project
python quickstart-email-python.py-
In the Nylas dashboard, create a new application and set the hosted auth callback URL to
http://localhost:5000/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:5000/nylas/authand log in and end user account. Enjoy!