Skip to content

nylas-samples/java-read-calendar-events

Repository files navigation

java-read-calendars-events

This sample will show you to read calendars events using the Nylas Java SDK V3.

Setup

System dependencies

  • Java 18.0.2
  • Maven 3.8.6

Gather environment variables

You'll need the following values:

ACCESS_TOKEN = ""
CALENDAR_ID = ""

Add the above values to a new .env file:

$ touch .env # Then add your env variables

Install dependencies

org.slf4j / slf4j-simple / 1.7.25
com.nylas.java / nylas-java-sdk / 1.15.0
io.github.cdimascio / dotenv-java / 2.3.2

Compilation

To compile the comment we need to use this maven command:

mvn clean compile

Usage

Run the application using the maven command:

$ mvn exec:java -Dexec.mainClass="read_calendar_events"

If successful, all your events from an specific will be displayed.

Learn more

Read the blog post How to Manage Calendar Events with the Nylas Java SDK Visit our Nylas Java SDK documentation to learn more.

About

Read calendar events using Java and Nylas

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages