Loading...
Searching...
No Matches
GoogleDataProvider Module

Qore GoogleDataProvider module definition

# Introduction to the GoogleDataProvider Module

The GoogleDataProvider module provides a data provider API for Google cloud REST API services.

This data provider provides Google API access to:

- calendarList:
  - `calendar/calendarList/list`
- calendars:
  - `calendar/calendar-insert`
  - `calendar/calendars/<calendar_id>/delete`
  - `calendar/calendars/<calendar_id>/freeBusy`
  - `calendar/calendars/<calendar_id>/get`
  - `calendar/calendars/<calendar_id>/patch`
  - `calendar/calendars/<calendar_id>/update`
- calendar events:
  - `calendar/calendars/<calendar_id>/events/delete`
  - `calendar/calendars/<calendar_id>/events/get`
  - `calendar/calendars/<calendar_id>/events/insert`
  - `calendar/calendars/<calendar_id>/events/instances`
  - `calendar/calendars/<calendar_id>/events/list`
  - `calendar/calendars/<calendar_id>/events/patch`
  - `calendar/calendars/<calendar_id>/events/quickAdd`
  - `calendar/calendars/<calendar_id>/events/update`

To use this data provider, you will need a connection that has already executed the OAuth2 authorization code flow and acquired a token to communicate with the Google API.

# Google Data Provider Factory

The name of the Google data provider factory is `google`.

# Google Data Provider Examples

These examples are with `qdp`, the command-line interface to the Data Provider API.

API Example: Retrieve Metadata for All Calendars

      qdp google-conn/calendar/calendarList/list dor

API Example: Retrieve Metadata for the Primary Calendar

      qdp google-conn/calendar/calendars/primary/get dor

API Example: Update Calendar Description

      qdp google-conn/calendar/calendars/calendar_name/patch dor description="new description"

API Example: Retrieve Calendar Event

      qdp google-conn/calendar/calendars/primary/events/get dor id=event_id

API Example: Quick Add a Calendar Event

      qdp google-conn/calendar/calendars/primary/events/quickAdd dor text="Lunch at Burger Bar from 12:30-13:30 today"

API Example: Update a Calendar Event

      qdp google-conn/calendar/calendars/primary/events/update dor id=event_id,summary="Lunch Today"

API Example: Delete a Calendar Event

      qdp google-conn/calendar/calendars/primary/events/delete dor id=event_id

# Release Notes

## GoogleDataProvider v1.0

- initial release of the module