Examples of DbxRequestConfig


Examples of com.dropbox.core.DbxRequestConfig

    /**
     * Obtain a new instance of DbxClient and store it in configuration.
     * @throws DropboxException
     */
    public void createClient() throws DropboxException {
        DbxRequestConfig config =
                new DbxRequestConfig(clientIdentifier, Locale.getDefault().toString());
        DbxClient client = new DbxClient(config, accessToken);
        if (client == null) {
            throw new DropboxException("can't establish a Dropbox conenction!");
        }
        this.client = client;
View Full Code Here

Examples of com.dropbox.core.DbxRequestConfig

      String token = Files.exists(this.tokenPath) ? FileUtils.readFileToString(this.tokenPath.toFile()) : null;

      DbxAppInfo appInfo = new DbxAppInfo(dropboxOptions.getAppKey(), dropboxOptions.getAppSecret());

      DbxRequestConfig config = new DbxRequestConfig("Cloudsync/1.0", Locale.getDefault().toString());
      DbxWebAuthNoRedirect webAuth = new DbxWebAuthNoRedirect(config, appInfo);

      if (StringUtils.isEmpty(token)) {

        final String url = webAuth.start();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.