This sample will show you to easily create events using the Events Endpoint API.
Install Cpan Minus:
$ brew install cpanminusThen install the following packages:
$ cpanm Mozilla::CA
$ cpanm DotenvYou'll need the following values:
ACCESS_TOKEN=<ACCESS_TOKEN>
CALENDAR_ID=<CALENDAR_ID>
Add the above values to a new .env file:
$ touch .env # Then add your env variablesRun the app:
$ perl CreateEvent.plWhen you run it, it will display the newly created event
Read the blog post How to Schedule Events with Any Calendar API
Visit our Nylas Calendar API documentation to learn more.