The External Calendars API enables you to connect and sync a Wix site with external calendars.
With External Calendars, you can:
The External Calendars API provides built-in support for Google, Microsoft, and Apple calendars. Integration with additional external calendars can be enabled by installing a calendar integration app from the Wix App Market.
It’s important to note the following points before starting to code:
listProviders()
to find out whether to connect with a provider using connectByOAuth()
or connectByCredentials()
.syncConfig
property contains settings for the external calendar connection, including whether importing and/or exporting of calendar events is enabled.To use the ExternalCalendars API, install the @wix/bookings
package using npm or Yarn:
or
Then import { externalCalendars }
from @wix/bookings
:
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Connects to an external calendar by directly providing the external calendar account credentials.
Once a connection is successfully created, use listEvents()
to obtain an up-to-date list of events in the connected external calendars.
Note:
Use listProviders()
to find out whether to connect to a particular provider using this method or connectByOAuth()
.
ID of the external calendar provider. Find this with the listProviders()
function.
ID of the schedule to connect with the external calendar account.
Email address for the external calendar account.
Password for the external calendar account.
There is 1 error with this status code.
There is 1 error with this status code.
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.