This example illustrates how to export selected appointments to a specific Google Calendar using the Google Calendar API. Google provides the corresponding guidelines regarding the use of this API:
Before using this API, make certain you have read and are in compliance with Google’s licensing terms. Next, you’ll need to generate a corresponding JSON file with credentials to enable the Google Calendar API.
We have a corresponding KB article which contains a step-by-step description of how to generate this JSON file:
How to enable the Google Calendar API to use it in your application
After you generate this JSON file, start the "oauth2callback.aspx" page for authorization.
1. Enter the email address you used to generate the JSON file.
2. Select the JSON file on the client machine by clicking the "Browse" button.
3. Click the "Get 'Client ID' and 'Client secret' from file" button to upload the selected file and enable the Google Calendar API.
4. The application should be navigated to the "Default.aspx" page.
5. Select a corresponding calendar to which the selected appointments are exported from the list.
P.S. To run this example's solution, include the corresponding "Google Calendar API" assemblies into the project.
For this, open the "Package Manager Console" (Tools - NuGet Package Manager) and execute the following command:
Install-Package Google.Apis.Calendar.v3
See Also: