public class DropboxUtil
extends java.lang.Object
| Constructor | Description |
|---|---|
DropboxUtil() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
download(com.dropbox.core.v2.DbxClientV2 dbxClient,
java.lang.String inputPath,
java.lang.String outputPath) |
Download.
|
static com.dropbox.core.v2.DbxClientV2 |
getClientFromAccessToken(java.lang.String accessToken) |
Gets the client from access token.
|
static com.dropbox.core.v2.DbxClientV2 |
getClientFromAuthFile(java.lang.String authFile) |
Load and authenticate dropbox-client by authentification file
|
static java.lang.String |
getMemberId(com.dropbox.core.v2.DbxTeamClientV2 dbxClient,
java.lang.String displayUserName) |
Gets the member id.
|
static com.dropbox.core.v2.DbxTeamClientV2 |
getTeamClientFromAccessToken(java.lang.String accessToken) |
Gets the team client from access token.
|
static com.dropbox.core.v2.DbxTeamClientV2 |
getTeamClientFromAuthFile(java.lang.String authFile) |
Load and authenticate dropbox-client by authentification file
|
static com.dropbox.core.v2.files.ListFolderResult |
listTeamFolder(com.dropbox.core.v2.DbxClientV2 dbxClient,
java.lang.String folder) |
List team folder.
|
static void |
uploadFile(com.dropbox.core.v2.DbxClientV2 dbxClient,
java.io.File localFile,
java.lang.String dropboxPath) |
Upload file.
|
static void |
uploadFileToTeamFolder(com.dropbox.core.v2.DbxTeamClientV2 dbxClient,
java.io.File localFile,
java.lang.String targetPath) |
Upload file to team folder.
|
static void |
uploadFileToTeamFolder(com.dropbox.core.v2.DbxTeamClientV2 dbxClient,
java.io.File localFile,
java.lang.String targetPath,
java.lang.String displayUserName) |
Upload file to team folder.
|
static void |
uploadFileToTeamFolder(com.dropbox.core.v2.DbxTeamClientV2 dbxClient,
java.lang.String localFile,
java.lang.String targetPath) |
Upload file to team folder.
|
public static com.dropbox.core.v2.DbxClientV2 getClientFromAuthFile(java.lang.String authFile)
*.credentialsin classpath
authFile - the auth filepublic static com.dropbox.core.v2.DbxClientV2 getClientFromAccessToken(java.lang.String accessToken)
accessToken - the access tokenpublic static com.dropbox.core.v2.DbxTeamClientV2 getTeamClientFromAuthFile(java.lang.String authFile)
*.credentialsin classpath *
authFile - the auth filepublic static com.dropbox.core.v2.DbxTeamClientV2 getTeamClientFromAccessToken(java.lang.String accessToken)
accessToken - the access tokenpublic static void uploadFile(com.dropbox.core.v2.DbxClientV2 dbxClient,
java.io.File localFile,
java.lang.String dropboxPath)
dbxClient - the dbx clientlocalFile - the local filedropboxPath - the dropbox pathpublic static void uploadFileToTeamFolder(com.dropbox.core.v2.DbxTeamClientV2 dbxClient,
java.io.File localFile,
java.lang.String targetPath)
dbxClient - the dbx clientlocalFile - the local filetargetPath - the target pathpublic static void uploadFileToTeamFolder(com.dropbox.core.v2.DbxTeamClientV2 dbxClient,
java.lang.String localFile,
java.lang.String targetPath)
dbxClient - the dbx clientlocalFile - the local filetargetPath - the target pathpublic static com.dropbox.core.v2.files.ListFolderResult listTeamFolder(com.dropbox.core.v2.DbxClientV2 dbxClient,
java.lang.String folder)
dbxClient - the dbx clientfolder - the folderpublic static void download(com.dropbox.core.v2.DbxClientV2 dbxClient,
java.lang.String inputPath,
java.lang.String outputPath)
dbxClient - the dbx clientinputPath - the input pathoutputPath - the output pathpublic static java.lang.String getMemberId(com.dropbox.core.v2.DbxTeamClientV2 dbxClient,
java.lang.String displayUserName)
dbxClient - the dbx clientdisplayUserName - the display user namepublic static void uploadFileToTeamFolder(com.dropbox.core.v2.DbxTeamClientV2 dbxClient,
java.io.File localFile,
java.lang.String targetPath,
java.lang.String displayUserName)
dbxClient - the dbx clientlocalFile - the local filetargetPath - the target pathdisplayUserName - the display user name