Last active
December 31, 2015 08:19
-
-
Save wikibook/7959778 to your computer and use it in GitHub Desktop.
드롭박스에서 파일에 대한 직접 다운로드 링크 생성하기
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DbxEntry.WithChildren listing = dbxClient.getMetadataWithChildren("/"); | |
if (listing.entry instanceof DbxEntry.Folder) { | |
for (DbxEntry child : listing.children) { | |
String shareableUrl = dbxClient.createShareableUrl(child.path); | |
shareableUrl = shareableUrl.replace("www.dropbox.com", "dl.dropboxusercontent.com"); | |
System.out.println(shareableUrl); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment