This sample repo will show how to use Hosted Auth to log in a user and display his/hers latest 10 email messages.
This repo uses the LeafPHP PHP Framework.
PHP version 8.3.4 or higher
You'll need the following value on an .env file:
API_KEY_V3=<YOU_API_KEY_V3>
The .env
file is added to .gitignore
. Ensure to store these values securely.
$ composer require leafs/leaf
$ composer require leafs/blade
$ composer require vlucas/phpdotenv
$ composer require leafs/session
You need to add the following to your Callback URIs tab on the Hosted Authentication section of your Nylas Dashboard
Details on how to do that can be found here How to create a scheduler with Python and Taipy
http://localhost:8000
http://localhost:8000/oauth/exchange
To run the project, clone it and the run
php -S localhost:8000
If you found a bug or want to suggest a new [feature/use case/sample], please file an issue.
Visit our Nylas documentation to learn more.