I'm working in a Drupal which manages a single account for whole site
as an image gallery repository, with a tag for every node. I won't
like to use the PHP client library if it is not 100% compatible with
GPL v2 because that is a mandatory to host contributed module at
drupal.org. And also because it have to be as much low level as
posible, curl is enough by now...

Blessings!

On Oct 15, 1:29 pm, Javier Martinez Fernandez <[EMAIL PROTECTED]>
wrote:
> Al last I get it using fsock and not curl.
> The reason I want to use my own implementation, is because I don't  
> want to load a bunch of files, to only make use of one action.
>
> Thanks anyway.
>
> El 15/10/2008, a las 19:36, Jeff Fisher escribió:
>
> > Hi,
>
> > I'd need to see the request your code is making and the response  
> > back from the server. If you are using a local development server  
> > you can capture this with WireShark.
>
> > I'm also curious why you chose to roll your own PHP implementation  
> > with libcurl instead of using our PHP client library. We're looking  
> > to improve the PHP client library, so whatever feedback you have  
> > would be welcome. :)
>
> > Cheers,
> > -Jeff
>
> > On Mon, Oct 13, 2008 at 2:29 AM, Javier Martinez  
> > <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to create a picasa album with php and curl, but I can't.
> > Here is my code:
>
> > $source = "<entry xmlns='http://www.w3.org/2005/Atom'
> > xmlns:media='http://search.yahoo.com/mrss/'xmlns:gphoto='http://
> > schemas.google.com/photos/2007'><title type='text'>Trip To Italy</
> > title><summary type='text'>This was the recent trip I took to Italy.</
> > summary><gphoto:location>Italy</
> > gphoto:location><gphoto:access>public</
> > gphoto:access><gphoto:commentingEnabled>true</
> > gphoto:commentingEnabled><gphoto:timestamp>1152255600000</
> > gphoto:timestamp><media:group><media:keywords>italy, vacation</
> > media:keywords></media:group><category scheme='http://
> > schemas.google.com/g/2005#kind' term='http://schemas.google.com/
> > photos/
> > 2007#album'></category></entry>";
>
> > $headers = array('Authorization: AuthSub token=' . $token, 'Content-
> > Type: application/atom+xml', 'Content-Length: ' . strlen($source));
>
> > $ch = curl_init();
> > curl_setopt(CURLOPT_URL, 'http://picasaweb.google.com/data/feed/api/
> > user/ecentinela');
> > curl_setopt(CURLOPT_POST, 1);
> > curl_setopt(CURLOPT_POSTFIELDS, $source);
> > curl_setopt(CURLOPT_RETURNTRANSFER, 1);
> > curl_setopt(CURLOPT_HTTPHEADER, $headers);
> > $result = curl_exec($ch);
> > curl_close($ch);
>
> > Can somebody help me with this?
>
> > Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums 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-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to