Search
GoogleCalendarImporter Class
Remarks See Also
 





Imports schedules from Google Calendar.

Namespace: MindFusion.Scheduling.Import
Assembly: MindFusion.Scheduling.Import

 Syntax

C#  Copy Code

public class GoogleCalendarImporter

Visual Basic  Copy Code

Public Class GoogleCalendarImporter

 Remarks

In order to gain access to a user's Google calendar, you must create a project in the Google Cloud console, and enable the Google Calendar API. On project's Data Access page, add /auth/calendar.events.readonly scope. On project's Clients page, create a desktop client and download the OAuth client json file.

Now you should be able to request user's permission to read their calendar data by implementing OAuth 2 authorization flow. This can be done by sending HTTP requests to Google's oauth2 API endpoint, as shown in this example:

https://github.com/googlesamples/oauth-apps-for-windows

or using Google's (or 3rd party) .NET client libraries. Once you receive the access token representing user's consent, you can pass it to the Import method to import calendar events as Appointment objects in the returned Schedule.

 Inheritance Hierarchy

System.Object
    MindFusion.Scheduling.Import.GoogleCalendarImporter

 See Also