public void leave ( String groupId , Boolean deletePhotos ) throws FlickrException { Map < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( "method" , METHOD_LEAVE ) ; parameters . put ( "group_id" , groupId ) ; parameters . put ( "delete_photos" , deletePhotos ) ; Response response = transportAPI . post ( transportAPI . getPath ( ) , parameters , apiKey , sharedSecret ) ; if ( response . isError ( ) ) { throw new FlickrException ( response . getErrorCode ( ) , response . getErrorMessage ( ) ) ; } }
Leave a group .