For any business, using a calendar to create and manage events is an essential asset to maintaining current customers and attracting new prospects. But sometimes, using a regular calendar is not enough or it’s not feasible. When there’s the need to create an event for gym equipment, Zumba class, to reserve an office space or when we need to create an event for someone not working in our company, then a virtual calendar is the way to go, and this guide is all you need.
Special thanks to Allison Bradley, our Solutions Engineer II for guiding me into Virtual Calendars.
Virtual Calendars are calendars that are tied to your Nylas account, so they are independent of any calendar provider. A virtual calendar will handle one event at a time.
How do Virtual Calendars work?
To create a virtual calendar, you need to assign a non-working email address, which will become its unique identifier. Nylas will use that identifier to manage the calendar account.
In order to create a Virtual Calendar we need to first create a Virtual Account. An application can have multiple virtual accounts, but only one virtual calendar can be associated with a virtual account.
Creating a Virtual Calendar
First, we need to create a virtual account, which uses native authentication. So just copy and paste the following cURL call into a terminal window:
After executing this code, we will have our virtual calendar ready to use:
Creating an event on a Virtual Calendar
We can create an event, just like we would do using a regular calendar, with the exception of using the Virtual Access Token and the Virtual Calendar Id:
As we can see we get all the relevant information back and the owner has displayed a Virtual Calendar <nylas_gym_calendar>.
One important thing to keep in mind is that Virtual Calendars don’t send email notifications, so while I have been invited to this event, I have not received any email confirmation. But don’t let that scare you away, there’s a way to overcome this.
Generate an ICS file
An ICS (Internet Calendar Scheduling) file can be generated by using an event id:
We can now check our email to confirm that indeed, we received the email:
Perfect. We can simply view it on our Google Calendar and confirm that we’re going.
Virtual Calendars are a powerful way to handle your calendar needs, and this guide should be your number one resource.
Is there an easier way?
Of course, we provide four SDKs: Ruby, Java, Node.js and Java. They are all prepared to work with Virtual Calendars and make our lives easier and our coding time shorter.
Also, if you want to learn more about Virtual Calendars, read our documentation Virtual Calendars Overview.
Don’t miss the action, join our LiveStream Coding with Nylas: