Table Calendars
Description
No description available
Supported Operations
Below section contains supported CRUD operations. Each operation is executed by some EndPoint behind the scene.| Method | Supported | Reference EndPoint |
|---|---|---|
| SELECT | list_calendars | |
| INSERT | ||
| UPDATE | ||
| UPSERT | ||
| DELETE | ||
| LOOKUP |
Examples
SSIS
Use Google Calendar Connector in API Source component to read data or in API Destination component to read/write data:
Read from Calendars table using API Source
| Required Parameters | |
|---|---|
| User ID (e.g. 'me' or other-user-email) | Fill-in the parameter... |
Read/write to Calendars table using API Destination
| Required Parameters | |
|---|---|
| User ID (e.g. 'me' or other-user-email) | Fill-in the parameter... |
ODBC application
Use these SQL queries in your ODBC application data source:
List calendars
<p>This example retrieves a list of calendars accessible to the authenticated user or specified user. Use <code>UserId='me'</code> for the current user (OAuth) or a specific email for service accounts with domain-wide delegation.</p> <p><strong>Note:</strong> For service accounts, impersonation may be required for non-'me' users.</p>
SELECT * FROM Calendars
-- Default: Lists calendars for the authenticated user
--OR--
--SELECT * FROM Calendars WITH(UserId='me') -- for OAuth authenticated user
--SELECT * FROM Calendars WITH(UserId='someuser@email.com') -- for specific user (requires domain-wide delegation for service accounts)
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
List calendars
<p>This example retrieves a list of calendars accessible to the authenticated user or specified user. Use <code>UserId='me'</code> for the current user (OAuth) or a specific email for service accounts with domain-wide delegation.</p> <p><strong>Note:</strong> For service accounts, impersonation may be required for non-'me' users.</p>
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM Calendars
-- Default: Lists calendars for the authenticated user
--OR--
--SELECT * FROM Calendars WITH(UserId=''me'') -- for OAuth authenticated user
--SELECT * FROM Calendars WITH(UserId=''someuser@email.com'') -- for specific user (requires domain-wide delegation for service accounts)';
EXEC (@MyQuery) AT [LS_TO_GOOGLE_CALENDAR_IN_GATEWAY];