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
Comments not found