This sample will show you to easily read all your calendars using the Calendars Endpoint API.
$ mkdir read_calendars && cd read_calendars
$ dotnet new console- RestSharp
- DotNetEnv
You'll need the following values:
ACCESS_TOKEN = ""
Add the above values to a new .env file:
$ touch .env # Then add your env variablesTo compile the comment we need to use this dotnet command:
$ dotnet run --project read_calendars.csprojRun the app:
$ ./bin/Debug/net6.0/read_calendarsWhen you run it, it will display all your calendars and wait for a keystoke to end
Visit our Nylas Calendar API documentation to learn more.