public FileUrlResponse getFilesUrl ( String requestId ) throws HelloSignException { String url = BASE_URI + SIGNATURE_REQUEST_FILES_URI + "/" + requestId ; HttpClient httpClient = this . httpClient . withAuth ( auth ) . withGetParam ( PARAM_GET_URL , "1" ) . get ( url ) ; if ( httpClient . getLastResponseCode ( ) == 404 ) { throw new HelloSignException ( String . format ( "Could not find request with id=%s" , requestId ) ) ; } return new FileUrlResponse ( httpClient . asJson ( ) ) ; }
Retrieves a URL for a file associated with a signature request .