Skip to content

nylas-samples/create_events_c_sharp

Repository files navigation

create_events_c_sharp

This sample will show you to easily create events using the Events Endpoint API.

Setup

$ mkdir create_events && cd create_events

$ dotnet new console

System dependencies

  • RestSharp
  • DotNetEnv

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 create_events.csproj

Usage

Run the app:

$ ./bin/Debug/net6.0/create_events

When you run it, it will display the newly created event and wait for a keystoke to end

Learn more

Visit our Nylas Calendar API documentation to learn more.

About

Create events using C# and the Nylas APIs

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages