"api_sig",
AuthUtilities.getSignature(sharedSecret, parameters)
)
);
Response response = transportAPI.get(transportAPI.getPath(), parameters);
if (response.isError()) {
throw new FlickrException(response.getErrorCode(), response.getErrorMessage());
}
// response:
// <comments photoset_id="72157594152539675">
// <comment
// id="2534725-72157594152539675-72157594172966066"
// author="99589152@N00"
// authorname="ortrun"
// datecreate="1150905040"
// permalink="http://www.flickr.com/photos/extranoise/sets/72157594152539675/comments#comment72157594172966066">
// really unreal!
// </comment>
// <comment
// id="2534725-72157594152539675-72157594176993150"
// author="47093120@N00"
// authorname="nis.jensen"
// datecreate="1151259227"
// permalink="http://www.flickr.com/photos/extranoise/sets/72157594152539675/comments#comment72157594176993150">
// Wow - you're better than most - this was a great view - i'll just take it again!
// </comment>
// <comment
// id="2534725-72157594152539675-72157594176996639"
// author="47093120@N00"
// authorname="nis.jensen"
// datecreate="1151259453"
// permalink="http://www.flickr.com/photos/extranoise/sets/72157594152539675/comments#comment72157594176996639">
// Second it's even better!!!!
// </comment>
// </comments>
List comments = new ArrayList();
Element commentsElement = response.getPayload();
NodeList commentNodes = commentsElement.getElementsByTagName("comment");
int n = commentNodes.getLength();
for (int i = 0; i < n; i++) {
Comment comment = new Comment();
Element commentElement = (Element) commentNodes.item(i);