Hi,
I am using zendgdata library for google calendar.
I am getting this error while using this function createQuickAddEvent(it add events to the the google calendar).
Code of this function is:
/**
* Creates an event on the authenticated user's default calendar using
* the specified QuickAdd string.
*
* @param Zend_Http_Client $client The authenticated client object
* @param string $quickAddText The QuickAdd text for the event
* @return string The ID URL for the event
*/
function createQuickAddEvent ($client, $quickAddText) {
$gdataCal = new Zend_Gdata_Calendar($client);
$event = $gdataCal->newEventEntry();
$event->content = $gdataCal->newContent($quickAddText);
$event->quickAdd = $gdataCal->newQuickAdd(true);
$newEvent = $gdataCal->insertEvent($event);
return $newEvent->id->text;
}
Error: Expected response code 200, got 403
May be this is due to the fact i have not loaded google calendar(setting timezone first time when you click google calendar). After loading google calendar this error never comes.But i want a solution to this.This thing should never happen with a new user.
Please help me
Thanks.