made sum silly mistakes.. sorry to bother u guys
edited the code and it is working fine.
<?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 = '
[hidden email]';
$pass = '********';
$service = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; // predefined service name for calendar
/**
* Create an authenticated HTTP Client to talk to Google.
*/
$config = array(
'adapter' => 'Zend_Http_Client_Adapter_Proxy',
'proxy_host' => '
144.16.192.247',
'proxy_port' => 8080
);
// Instantiate a client object
$clientp = new Zend_Http_Client($myCalendar, $config);
$client = Zend_Gdata_ClientLogin::getHttpClient(
$user,
$pass,
$service, $clientp);
var_dump($client);
?>
but the only thing i dnt get is the above is working well but the below 1 is not
$clientp = new Zend_Http_Client(
$service, $config);
it gives the message "Scheme "cl" is not supported"