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://<http://search.yahoo.com/mrss/%27xmlns:gphoto=%27http://>
> 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 <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'<http://picasaweb.google.com/data/feed/api/user/ecentinela%27>
> );
> 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