Hi,
I have tried this code

<?php
set_include_path('/home/jwitt/public_html/grabber');
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Gapps');
Zend_Loader::loadClass('Zend_Gdata_Query');

// Using Client Login
$client = Zend_Gdata_ClientLogin::getHttpClient("[email protected]",
"*******", "cp");
$gdata = new Zend_Gdata($client);
$query = new Zend_Gdata_Query('http://www.google.com/m8/feeds/
contacts/
USER%40domain.com/full');
/*$query = new Zend_Gdata_Query('http://www.google.com/m8/feeds/
contacts/
default/full'); */
$query->setMaxResults(100);
$feed = $gdata->getFeed($query);

foreach ($feed as $entry) {
  $XMLContent = $entry->getXML();
  print_r( $XMLContent );

}
?>

for fetching contacts of the given client but i got the following
errors

Fatal error: Uncaught exception 'Zend_Uri_Exception' with message
'Invalid URI supplied' in /home/jwitt/public_html/grabber/Zend/Uri/
Http.php:156 Stack trace: #0 /home/jwitt/public_html/grabber/Zend/
Uri.php(132): Zend_Uri_Http->__construct('http', '//www.google.co...')
#1 /home/jwitt/public_html/grabber/Zend/Http/Client.php(257):
Zend_Uri::factory('http://www.goog...') #2 /home/jwitt/public_html/
grabber/Zend/Gdata/App.php(618): Zend_Http_Client->setUri('http://
www.goog...') #3 /home/jwitt/public_html/grabber/Zend/Gdata.php(202):
Zend_Gdata_App->performHttpRequest('GET', 'http://www.goog...', Array,
NULL, NULL, NULL) #4 /home/jwitt/public_html/grabber/Zend/Gdata/App.php
(762): Zend_Gdata->performHttpRequest('GET', 'http://www.goog...',
Array) #5 /home/jwitt/public_html/grabber/Zend/Gdata/App.php(685):
Zend_Gdata_App->get('http://www.goog...', Array) #6 /home/jwitt/
public_html/grabber/Zend/Gdata/App.php(193): Zend_Gdata_App->importUrl
('http://www.goog...', 'Zend_Gdata_Feed') #7 /home/jwitt/public_html/
grabber/Zend/Gdata.php( in /home/jwitt/public_html/grabber/Zend/Uri/
Http.php on line 156

anyone know the reason please help.

Thanks,
VKS


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts 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-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to