Hi, We had other threads that could help: http://groups.google.com/group/google-contacts-api/browse_thread/thread/d9e3444b404244a3/aefe1a800fd856ed http://groups.google.com/group/google-contacts-api/browse_thread/thread/be92586871a56046/95ec69573ca0f490
Cheers, Julian. On Mar 25, 10:09 pm, Sav <[email protected]> wrote: > I am confused about how to retrieve the Google Contacts. > > I have registered my server with Google and am getting a token from > Google. I am not sure what the next step is? How do I use this cookie > with Zend_Gdata? > > I keep getting: > Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with > message 'Expected response code 200, got 401 <HTML> <HEAD> > <TITLE>Authorization required</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" > TEXT="#000000"> <H1>Authorization required</H1> <H2>Error 401</H2> </ > BODY> </HTML> ' in /var/www/example/auth/Zend/Gdata/App.php:689 Stack > trace: #0 /var/www/example/auth/Zend/Gdata.php(220): > Zend_Gdata_App->performHttpRequest('GET', 'http://www.goog...', Array, NULL, > NULL, > > NULL) #1 /var/www/mycity/auth/Zend/Gdata/App.php(842): > Zend_Gdata->performHttpRequest('GET', 'http://www.goog...', Array) #2 > /var/www/ > > example/auth/bbauth.php(246): Zend_Gdata_App->get('http://www.goog...') #3 > /var/www/example/auth/bbauth.php(635): CreateContent > ('52506') #4 {main} thrown in /var/www/example/auth/Zend/Gdata/App.php > on line 689 > > The code I am using is > > $httpClient = new Zend_Http_Client(); > $gdata = new Zend_Gdata($httpClient); > $gdata->setMajorProtocolVersion(2); > Can some one direct me to a php sample for contacts and plain > authorization. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
