Google Calendar API

Software Screenshot:
Google Calendar API
Software Details:
Version: 7.x-1.0-rc1 / 6.x-0.1-beta1
Upload Date: 13 Apr 15
Developer: Aaron Craig
Distribution Type: Freeware
Downloads: 10

Rating: nan/5 (Total Votes: 0)

The module is intended to be used by other modules who want to import/export to Google calendars.

To use create an account in the Drupal admin pages (admin/settings/gcal).

The Google account username and password are stored IN PLAIN TEXT on the database, so do not use this module in a shared server environment.

When the other authentication methods have been implemented, the user may choose to use a more secure method.

Create a calendar

$calendar = array(
  'title' => 'My Calendar'
  'description' => 'Some text'
  'locale'  => 'en_US',
  'public'  => TRUE
);

$gcal_id = gcal_create_calendar($calendar); // using default account
// Store $gcal_id for further reference.

See documentation for more parameters.
Get and update events

$events = gcal_find_events($start_min, $start_max, $gmail_account_email);
// $events contains an array of events.
$events[0]['title'] = "New title";
$success = gcal_update_event($events[0]);
Create a new event

$event = array(
  'title'   => "Happy 4th of July Party",
  'start'  => "2010-07-04T150000.000",
  'end'   => "2010-07-04T210000.000",
  'description' => 'A big fireworks show!'
);

$success = gcal_create_event($event, $gmail_account_email);

Various other API methods are supported by the module.

Installation:

Unpack in your modules folder (usually '/sites/all/modules/')
Enable under Administer > Site Building > Modules

Requirements:

  • Drupal 6.x/7.x

Similar Software

Comments to Google Calendar API

Comments not found
Add Comment
Turn on images!