Hi Julian

Do you have the same in curl?

Thanks
sebastian


On 30/09/09 12:10, "Julian (Google)" <[email protected]> wrote:

> 
> Hi,
> 
> Here is an example, you first need to retrieve the photo url from the
> contact:
> 
> <?php
> 
> $clientLibraryPath = '.../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');
> Zend_Loader::loadClass('Zend_Http_Response');
> 
> $client = Zend_Gdata_ClientLogin::getHttpClient("[email protected]",
> "PASSWORD", "cp");
> $gdata = new Zend_Gdata($client);
> 
> $link_photo = "http://www.google.com/m8/feeds/photos/media/domain.com/
> 3c5fd34b888e075f";
> 
> $http_response = $gdata->get($link_photo);
> 
> $rawImage = $http_response->getBody();
> $headers = $http_response->getHeaders();
> $contentType = $headers["Content-type"];
> 
> header("Content-type: ".$contentType);
> print_r( $rawImage );
> 
> ?>
> 
> 
> Cheers,
> Julian
> 
> On Sep 29, 9:37 am, alex <[email protected]> wrote:
>> Can anyone help?
>> How can I retrive a contact photo in jpeg format using php zend?
>> Please I really need it. Thanks in advanced
> > 



--~--~---------~--~----~------------~-------~--~----~
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