0

다음은 Java를 사용하여 파일을 업로드하는 데 사용하는 코드입니다.Google API를 사용하여 업로드 된 문서의 파일 ID를 찾는 방법

파일이 업로드되고 있지만 업로드 된 파일의 파일 ID를 알고 싶습니까?

URL feedUrl = new URL("https://docs.google.com/feeds/default/private/full/"); 

DocsService docService = new DocsService("Doc"); 
docService.setUserCredentials("[email protected]","password"); 

DocumentListEntry uploadFile = new DocumentListEntry(); 
uploadFile.setTitle(new PlainTextConstruct("FileName")); 
uploadFile.setFile(new File("/path/test.csv"), "text/plain"); 
uploadFile = docService.insert(feedUrl, uploadFile); 

업로드 된 파일의 파일 ID를 찾는 방법은 무엇입니까?

Google API를 사용하여 & 문서를 업로드하고 싶습니다.

답변

0

this에 따르면,

uploadFile.getDocId() 
+0

감사 @Omri 시걸에 있어요 – Rohith

관련 문제