Hi All, I'm trying to set the visibility of an event created with the
API (using the zend framework in PHP), but no matter what I set the
visibilty to, the new event is always set to default which is public,
any ideas?
Here's the code:
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Calendar');
$user = 'XXXXXXXX';
$pass = 'XXXXXXXX';
$service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; // predefined
service name for calendar
$client = Zend_Gdata_ClientLogin::getHttpClient($user,$pass,$service);
$service = new Zend_Gdata_Calendar($client);
$event= $service->newEventEntry();
$event->title = $service->newTitle("Test");
$event->visibility = $service->newVisibility("event.private");
$newEvent = $service->insertEvent($event);
--~--~---------~--~----~------------~-------~--~----~
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://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---