Hi Julian I contacted my supplier one.com and they say they don't support ZEND, so I suppose that is the problem.
Is there a way around it? Can I download the Loader.php, and place it in my server? Which other things would I need? I visited zend.com and they give the option to install a zend server, this seems very complex to me though. Any ideas, suggestions would be really appreciated, Sebastian On 15/05/09 17:46, "Julian (Google)" <[email protected]> wrote: > > Hi Sebastian, > > You can try this example: > > <?php > > $clientLibraryPath = '/var/www/contacts/Zend'; > $oldPath = set_include_path(get_include_path() . PATH_SEPARATOR . > $clientLibraryPath); > > require_once '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]", > "PASSWORD", "cp"); > $gdata = new Zend_Gdata($client); > $query = new Zend_Gdata_Query('http://www.google.com/m8/feeds/contacts/ > user%40domain.com/full'); > $query->setMaxResults(1000); > $feed = $gdata->getFeed($query); > > $xml = new SimpleXMLElement($feed->getXML()); > $entries = $xml->children('http://www.w3.org/2005/Atom'); > > foreach ($entries->entry as $entry ) { > $defaults = $entry->children('http://schemas.google.com/g/2005'); > echo 'title: '. $entry->title; > if ( isset($defaults->email)){ > echo ' email: '. isset($defaults->email->attributes()->address); > } > echo ' address: '.$defaults->postalAddress; > } > ?> > > --Julian > > On May 14, 1:14 pm, Sebastian <[email protected]> wrote: >> Hi, >> >> sorry but I still don't understand how to make this work. >> >> I just want to get a list of my contacts, (picture, email, name, >> address, gender, phone number, lat & lng) >> >> I get this message: >> >> No input file specified. >> >> 1st.) I'm granted access >> 2nd.) it sends me to the page with the Token: >> >> http://allmybookings.com/viewcontacts.php?token=CK3iteHqChDTl6Hf______8B >> >> 3rd.) I get the message: "No input file specified.". >> >> In the config. I specified "viewcontacts.php". So, I don't understand. >> >> I tried all the example codes in this dicussion group "Contact API for >> PHP", >> >> I just put <? in the front and ?> at the end to make it PHP. >> >> I put my gmail email, and it's password. >> >> am I suppose to do something else? >> >> Could someone post a full code, in which I just need to change my >> email & password? >> >> <? >> >> 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]","MYPASSWORD", "cp"); >> $gdata = new Zend_Gdata($client); >> $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 ); >> >> } >> >> ?> >> >> Thanks >> Sebastian >> >> On Mar 31, 12:11 pm, Ashvin Savani <[email protected]> wrote: >> >>> I don't remember the exact link but you can do google with curl php >>> class and you should get it whatever you need. But its low level and >>> bit hard path as you need to make your own api. >> >>> Regards, >> >>> Ashvin >> >>> On Mar 31, 1:12 pm, sebastian de comocomo <[email protected]> >>> wrote: >> >>>> Hi Ashvin, >> >>>> I already check this: >> >>>> http://code.google.com/apis/ajaxsearch/documentation/reference.html#_... >>>> onje >> >>>> Is there a specific section for Curl & PHP that I don't know of? >> >>>> Could you send me the link? >> >>>> Thanks, >>>> Sebastian >> >>>> On 30/03/09 21:37, "Ashvin Savani" <[email protected]> wrote: >> >>>>> Sebastian, >> >>>>> Use Curl library for PHP. That should help. >> >>>>> Regards, >> >>>>> Ashvin >> >>>>> On Mar 30, 5:23 pm, Sebastian <[email protected]> wrote: >>>>>> Hi everyone, >> >>>>>> I'm new to Contacts API, and I'm a bit confused. >> >>>>>> I managed to register my domain, and to get it granted, so that it >>>>>> returns me a url with a TOKEN. >> >>>>>> https://www.google.com/accounts/AuthSubRequest?scope=http%3A%2F%2Fwww... >> >>>>>> I don't know what I should do next. I use PHP, and in the google >>>>>> developer's guide, says we should use this: >> >>>>>> GET /accounts/AuthSubSessionToken HTTP/1.1 >>>>>> Content-Type: application/x-www-form-urlencoded >>>>>> Authorization: AuthSub token="yourAuthToken" >>>>>> User-Agent: Java/1.5.0_06 >>>>>> Host:www.google.com >>>>>> Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 >>>>>> Connection: keep-alive >> >>>>>> Is this PHP? >> >>>>>> How do I implement this on my webpage? >> >>>>>> I don't see any of your codes containing this. >> >>>>>> Should I use $_GET['token'] to get the token? >> >>>>>> Any guide would be appreciated, >> >>>>>> Sebastian > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
