Skip to main content

TcxSchedulerWebServiceStorageGoogleProvider.GetScopes Method

Returns the list of online calendar access permissions that the associated authorization agent requests on a successful connection to a Google account.

Declaration

function GetScopes: TStringList; override;

Returns

Type
TStringList

Remarks

This function supports the internal infrastructure and is not intended to be used directly from your code. The Google OAuth 2.0 authorization agent calls the GetScopes function internally via the IdxOAuth2AuthorizationAgentScopeRequestor interface to request the data access permissions required to work with online calendars in a connected account. The returned Google online calendar access scope depends on the ReadOnly property value:

ReadOnly Property Value Calendar Access Scope String Description
False ‘https://www.googleapis.com/auth/calendar‘ The provider can synchronize event data between its web service storage resource and the selected calendar in the connected Google account without restrictions.
True ‘https://www.googleapis.com/auth/calendar.readonly‘ The provider can only obtain events from the selected calendar in the connected online account. The capability to add, remove, or modify existing user events is not available in read-only mode.

Every time you disable or enable the read-only mode, the associated authorization agent updates its list of online data access permissions and restarts an established connection to a Google account.

Note

The Google calendar event data provider can only obtain events or synchronize event data between its web service storage resource and the selected calendar depending on the ReadOnly property value. The provider does not allow you to add, remove, or customize calendars within the connected account.

See Also