Bulk add google calendar events using GoogleCL

Just wrote a quick ruby script a create a Birthday calendar for a list of contacts.

Note: To see your Google contacts' birthdays in Google Calendar, you can just use the "Contacts' birthdays and events" calendar gadget.

For this, I want to automate creation of google calendar events, based on information available in a csv file (row - name, birthday).

The above script reads a csv file and creates events using googlecl. For this to work, you need to have googlecl installed. We create events using the same way that we create events using Google Calendar 'Quick Add'.

Google_calendar
 

Posted
 

Accessing Google Calendar List using Zend GData library

In case you are wondering how to access Google Calendars using PHP, you can do that using the Zend GData Library. For this you don't need to use the Zend Framework for your project. For the purpose of this script, you need to download the Zend library and place the 'Zend' folder within the "downloadedfolder/library/Zend" and place it in the same directory as our glogin.php script.

Once you visit the above file on your localhost at http://localhost/glogin.php or http://yourdomain/glogin.php, if you are already logged into your Google Account, you will be redirected to a page request permission to access your data. If you are not logged into your Google Account, you will be asked to login and then requested for permission to access your account.

References:

  1. http://framework.zend.com/manual/en/zend.gdata.calendar.html
  2. http://code.google.com/apis/gdata/articles/php_client_lib.html
Posted