This sample will show you to easily create events using the Events Endpoint API.
$ mkdir create_events && cd create_events
$ dotnet new console
- RestSharp
- DotNetEnv
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
To compile the comment we need to use this dotnet
command:
$ dotnet run --project create_events.csproj
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
Visit our Nylas Calendar API documentation to learn more.