Skip to content

nylas-samples/read_events_c_sharp

Repository files navigation

read_events_c_sharp

This sample will show you to easily read events for the current day using the Events Endpoint API.

Setup

$ mkdir read_events && cd read_events

$ dotnet new console

System dependencies

  • RestSharp
  • DotNetEnv
  • Newtonsoft.Json

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

Compilation

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

$ dotnet run --project read_events.csproj

Usage

Run the app:

$ ./bin/Debug/net6.0/read_events

When you run it, it will display all the events for the current date and wait for a keystoke to end

Learn more

Visit our Nylas Calendar API documentation to learn more.

About

Read events using C# and the Nylas APIs

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages