Hi,
Using Zend you can do the following:
$rawImage2 = file_get_contents("photo2.jpg");
$link_photo_edit = 'http://www.google.com/m8/feeds/photos/media/user
%40domain.com/0/g2B66Nd0Hj9kBIDs0lZCxQ';
$client2 = Zend_Gdata_ClientLogin::getHttpClient("[email protected]",
"PASS", "cp");
$token = $client2->getClientLoginToken();
$client2->setUri($link_photo_edit);
$client2->setHeaders( array("Content-type: image/jpeg","Authorization:
GoogleLogin auth=".$token, "Content-length: ".strlen($rawImage2)) );
$client2->setRawData($rawImage2);
$http_response2 = $client2->request('PUT');
I do not have any curl example at hand, however it should be really
similar. I'll try to post one.
Cheers,
Julian.
On Sep 30, 2:49 pm, alex <[email protected]> wrote:
> using php forgot to say
>
> > ok now a even stranger question...and i belive more stupid than the
> > first.
> > can anyone point me to a tutorial for updating a contat photo? I
> > really didn't find one. Please Help.
>
> > thanks
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---