4 messages in com.googlegroups.google-picasa-data-apiRe: How can i get the list of comment...
FromSent OnAttachments
Torre05 Dec 2007 15:49 
Ryan Boyd (Google)06 Dec 2007 01:47 
Torre07 Dec 2007 09:47 
Ryan Boyd (Google)12 Dec 2007 15:46 
Subject:Re: How can i get the list of comments that a photo have?
From:Ryan Boyd (Google) (api.@google.com)
Date:12/12/2007 03:46:52 PM
List:com.googlegroups.google-picasa-data-api

Thank you for sharing the code... hopefully it'll help out other users! -Ryan

On Dec 7, 9:48 am, Torre <amig@gmail.com> wrote:

Thank you very much for u help.

I have tested this code, and works as i want thank you very much again.

FOR GET ALL COMMENTS AS STRING[]: CommentsQuery QueryComment = new CommentsQuery(entry.FeedUri); PicasaFeed FeedComment = this.picasaService.Query(QueryComment); string[] Comments = new string[FeedComment.Entries.Count]; for (int i = 0; i < FeedComment.Entries.Count; i++) { Comments[i] = FeedComment.Entries[i].Content.Content;

}

FOR INSERT A COMENT: private void AñadirComentario(PicasaEntry entry, string comentarioStr) { CommentEntry comentario = new CommentEntry(); comentario.Content.Content = comentarioStr; picasaService.Insert(new Uri(entry.FeedUri), comentario); }

On 6 dic, 10:47, "Ryan Boyd (Google)" <api.@google.com> wrote:

Hi Torre,

Thanks for the question.

As a quick summary that should get you going--- each PhotoEntry should have a FeedUri. This is the URL to the feed which will return data associated with that particular photo, currently including comments and tags. You can pass this to PicasaService.Query to retrieve a PicasaFeed object. Alternatively, if you want to restrict it just comments, you can pass the FeedUri to the constructor of the PhotoQuery object, and then add a KindParameter for comments. This PhotoQuery object can then be passed to PicasaService.Query.

You can also use the feed to post new comments-- by calling PicasaService.Insert(FeedUri, CommentEntry);

Sorry for the narrative, but I don't have a .NET compiler handy--- If this doesn't lead you on your way, I'll work on coding up some sample code tomorrow:

As a FYI - We are working on developing a .NET developer's guide for Picasa in a similar fashion to what we have for some of the other services, so we'll make sure that this question is answered in there so others don't get stuck at the same spot.

Cheers, -Ryan

On Dec 5, 3:49 pm, Torre <amig@gmail.com> wrote:

I wana get all comments of a photo and also add new ones, how can i do