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