I am trying to add and delete a tag using .NET API.
The tag is added successfully.
Uri postUri = new Uri(PicasaQuery.CreatePicasaUri(username, AlbumId,
PictureId));
TagEntry newEntry = new TagEntry();
newEntry.Title.Text = "My Tag";
PicasaEntry createdEntry = (PicasaEntry) service.Insert(postUri, newEntry);
When I try to delete the tag I get an error "Can not update a read-only
entry"
TagQuery query = new TagQuery(PicasaQuery.CreatePicasaUri(username));
query.Tags = "My Tag";
PicasaFeed feed = service.Query(query);
foreach (PicasaEntry entry in feed.Entries)
{
if (entry.IsTag)
{
entry.Delete();
}
}
Please help
--
You received this message because you are subscribed to the Google Groups
"Google Picasa Web Albums API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-picasa-data-api.
For more options, visit https://groups.google.com/d/optout.