API & Comments
xxclixxx
Registered Users Posts: 91 Big grins
Was just thinking, it'd be great if we could pull the comments from the API. And/or post them too. That way if I put the photo on my main site and people want to comment, all the comments for the photo are in every place rather than some in multiple.
Tim Linden
http://www.riphoto.com/
Please Vote - External Shopping Cart Links:
http://uservoice.com/a/mL8RD
http://www.riphoto.com/
Please Vote - External Shopping Cart Links:
http://uservoice.com/a/mL8RD
0
Comments
http://wiki.smugmug.net/display/SmugMug/Feeds+Examples
http://api.smugmug.com/hack/feed.mg?Type=usercomments&Data=YOURNAME&format=rss200"
You can probably even add ImageCount=xx to get more....
Well, that's the recent comments, not for a given photo. I suppose you could monitor the recent comments daily, and create your own database of per-image comments. Bleh.
And alas, nothing for setting comments, although it's probably possible to hack it, because it's easy enough to delete an individual comment with a call like:
http://$nickname.smugmug.com/comment.mg?CommentID=$commentid&delete=true
(Assuming you've already logged into your site and have the appropriate cookie, etc.)
But screen-scraping is bad bad bad. Hey DevBobo, can you please add access to Comments to the always-growing list of feature requests to the API?
http://www.riphoto.com/
Please Vote - External Shopping Cart Links:
http://uservoice.com/a/mL8RD
http://wiki.smugmug.net/display/API/show+1.2.2?method=smugmug.images.comments.get
Adding &Extras=Comments to smugmug.images.get will return all image comments.
Adding comments is coming...but I thought it would be better to release reading while I worked on some other stuff.
SmugMug API Developer
My Photos