public void editComment ( String commentId , String commentText ) throws FlickrException { Map < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( "method" , METHOD_EDIT_COMMENT ) ; parameters . put ( "comment_id" , commentId ) ; parameters . put ( "comment_text" , commentText ) ; // Note: This method requires an HTTP POST request. Response response = transportAPI . post ( transportAPI . getPath ( ) , parameters , apiKey , sharedSecret ) ; if ( response . isError ( ) ) { throw new FlickrException ( response . getErrorCode ( ) , response . getErrorMessage ( ) ) ; } // This method has no specific response - It returns an empty // sucess response if it completes without error. }
Edit the text of a comment as the currently authenticated user .