Hi Pierre,
Thanks for your prompt reply.
I tried your suggestion by commenting out the code portion for and adding
you code as follows:
require_once('[MY_PATH]/Calendar.php');
//authenticate users to Google accounts
/**********
$token = $_GET['token'];
if(!isset($token) && empty($token))
{
$authSubUrl = getAuthSubUrl();
$this->redirect($authSubUrl);
}
else
{
//retrieve a session token from Google and place this value into the
session variable
if(! isset($_SESSION['sessionToken']) && isset($token))
{
$_SESSION['sessionToken'] =
Zend_Gdata_AuthSub::getAuthSubSessionToken($token);
}
//get a Zend_Http_Client object
$client = Zend_Gdata_AuthSub::getHttpClient($_SESSION['sessionToken']);
*********/
$user = '[my gmail id]';
$pass = '[my password]';
$service = Zend_Gdata_Calendar::AUTH_
SERVICE_NAME; // predefined service name for calendar
$client = Zend_Gdata_ClientLogin::getHttpClient($user,$pass,$service);
.....
And again it threw an error but this time a slightly different one(hope this
can bring out some more details)
500 | Internal Server Error | Zend_Gdata_App_HttpException
Expected response code 200, got 400
[Line 1, Column 345, element gd:when] Badly formatted datetime
I extracted out the values that were getting sent to the createEvent() call
and this is how it looked:
*createEvent*(*object*('Zend_Gdata_HttpClient'), 'the google cal event',
'this is a test event that u have to attend if u want to live.',
'California', '2011-06-28', '15:00:00', '2011-06-29', '18:30:00', '0')
--
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html