public void editCoords ( String photoId , String userId , Rectangle bounds ) throws FlickrException { Map < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( "method" , METHOD_EDIT_COORDS ) ; parameters . put ( "photo_id" , photoId ) ; parameters . put ( "user_id" , userId ) ; parameters . put ( "person_x" , bounds . x ) ; parameters . put ( "person_y" , bounds . y ) ; parameters . put ( "person_w" , bounds . width ) ; parameters . put ( "person_h" , bounds . height ) ; Response response = transportAPI . get ( transportAPI . getPath ( ) , parameters , apiKey , sharedSecret ) ; if ( response . isError ( ) ) { throw new FlickrException ( response . getErrorCode ( ) , response . getErrorMessage ( ) ) ; } }
Edit the co - ordinates that the user shows in