Hi everyone,
i think that i am getting further with my knowledge about the PHP/API
usage but i do have to questions.
The first: is the code below this lines a correct way or am i totally
on a wrong path?
I have uploaded the ZEND libraries/folders etc, but do get an error.
MY CODE IS THIS:
<?php
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_AuthSub');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Calendar');
$user = '[EMAIL PROTECTED]';
$pass = 'xxx';
$service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; // predefined
service name for calendar
$client = Zend_Gdata_ClientLogin::getHttpClient($user,$pass,$service);
$gdataCal = new Zend_Gdata_Calendar();
$query = $gdataCal->newEventQuery();
$query->setUser('[EMAIL PROTECTED]');
$query->setVisibility('private-abcdefg');
$query->setProjection('full');
$eventFeed = $gdataCal->getCalendarEventFeed($query);
foreach ($eventFeed as $event) {
echo $event->title->text . '<br />';
}
?>
THE ERROR THAT APPEARS IS THIS:
...Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with
message 'Unable to Connect to ssl://www.google.com:443. Error #1176:
Unable to find the socket transport "ssl" - did you forget to enable
it when you configured PHP....(and much more)....
Is there a way to enable SSL even if my host does not allow me to
change the php.ini ?
Thanks in advance and have a nice night,
Carlos
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---