Hi,

  I want to add a comment to a picasa photo using your API mentioned
here:
http://code.google.com/intl/zh-CN/apis/picasaweb/docs/2.0/developers_guide_protocol.html#AddComments.

So I first write a xml string like this:
        "<entry xmlns=\"http://www.w3.org/2005/Atom\";>\n"
        "<content>%s</content>"
        "<category scheme=\"http://schemas.google.com/g/2005#kind\"; term=
\"http://schemas.google.com/photos/2007#comment\";></category>"
        "</entry>\r\n"
.then I POST to a url like this :http://picasaweb.google.com/data/feed/
api/user/ayu.family/albumid/5583011563083892673/photoid/
5583011571720066994..
I also login in.
But I connot add my comment to it successfully.
The information response by curl code is :
* About to connect() to picasaweb.google.com port 80 (#0)
*   Trying 64.233.183.93... * connected
* Connected to picasaweb.google.com (64.233.183.93) port 80 (#0)
> POST 
> /data/feed/api/user/ayu.family/albumid/5583011563083892673/photoid/5583011571720066994
>  HTTP/1.1
Host: picasaweb.google.com
Accept: */*
Authorization: GoogleLogin auth=DQAAALAAAABOwKD4VI-
wUR5q3B57XP6grpBXoXI_54ZFFEeTgipVP3Q3PH7h0fEaepg96_dMjo-
gJA8zvZc71xeamUv_Yun2q13XFKGm_YTfF-Nz1NsAYP_L-7OfZf3DUHzC8YBXYcDDY-
VD0-5Wg212jYqeJ0ejvkcu-mo8PRU18RWXEmriguPOgtlXyOgQbrGh6q0Cxyvk4r4NNH-
wOud34RrZYoRgVDe6yldpl5wvI9pXLwa_mA

Content-Type: application/atom+xml
GData-Version: 2
Content-Length: 195
Content-Type: application/x-www-form-urlencoded

* HTTP 1.0, assume close after body
< HTTP/1.0 411 Length Required
< Content-Type: text/html; charset=UTF-8
< Content-Length: 1363
< Date: Thu, 17 Mar 2011 06:15:54 GMT
< Server: GFE/2.0
<
* Closing connection #0..

I don't whether I miss smething.
Could you help me,Thanks very very much!

-- 
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 google-picasa-data-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-picasa-data-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en.

Reply via email to