/** * Exports and downloads Paper doc either as HTML or markdown. * * @param docId The Paper doc ID. Must not be {@code null}. * @param exportFormat Must not be {@code null}. * * @return Downloader used to download the response body and view the server * response. * * @throws IllegalArgumentException If any argument does not meet its * preconditions. */ public DbxDownloader<PaperDocExportResult> docsDownload(String docId, ExportFormat exportFormat) throws DocLookupErrorException, DbxException { PaperDocExport _arg = new PaperDocExport(docId, exportFormat); return docsDownload(_arg, Collections.<HttpRequestor.Header>emptyList()); }
@Override public DbxDownloader<PaperDocExportResult> start() throws DocLookupErrorException, DbxException { PaperDocExport arg_ = new PaperDocExport(docId, exportFormat); return _client.docsDownload(arg_, getHeaders()); } }
throw new JsonParseException(p, "Required field \"export_format\" missing."); value = new PaperDocExport(f_docId, f_exportFormat);