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