Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 927 Bytes

README.md

File metadata and controls

55 lines (34 loc) · 927 Bytes

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.