<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic how to install dropbox java sdk. steps to connect java to dropbox. i got secret key. but the example given for java api for dropbox throws exception. in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-to-install-dropbox-java-sdk-steps-to-connect-java-to-dropbox/m-p/6760#M280</link>
    <description>&lt;P&gt;public static void main(String[] args) throws IOException, DbxException {&lt;BR /&gt;
        // Get your app key and secret from the Dropbox developers website.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    final String APP_KEY = "my key";
    final String APP_SECRET = "my appsecret";

    DbxAppInfo appInfo = new DbxAppInfo(APP_KEY, APP_SECRET);
    DbxRequestConfig config = new DbxRequestConfig("x",Locale.getDefault().toString());

    DbxWebAuthNoRedirect webAuth = new DbxWebAuthNoRedirect(config, appInfo);


    String authorizeUrl = webAuth.start();
    System.out.println("1. Go to: " + authorizeUrl);
    System.out.println("2. Click \"Allow\" (you might have to log in first)");
    System.out.println("3. Copy the authorization code.");
    String code = new BufferedReader(new InputStreamReader(System.in)).readLine().trim();

    DbxAuthFinish authFinish = webAuth.finish(code);

    DbxClient client = new DbxClient(config, authFinish.accessToken);

    System.out.println("Linked account: " + client.getAccountInfo().displayName);
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;}&lt;BR /&gt;
output:&lt;/P&gt;

&lt;P&gt;Exception in thread "main" com.dropbox.core.DbxException$NetworkIO: java.net.UnknownHostException: api.dropbox.com&lt;/P&gt;

&lt;P&gt;how to solve this exception&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:46:37 GMT</pubDate>
    <dc:creator>Maheswari S.</dc:creator>
    <dc:date>2019-05-29T09:46:37Z</dc:date>
    <item>
      <title>how to install dropbox java sdk. steps to connect java to dropbox. i got secret key. but the example given for java api for dropbox throws exception.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-to-install-dropbox-java-sdk-steps-to-connect-java-to-dropbox/m-p/6760#M280</link>
      <description>&lt;P&gt;public static void main(String[] args) throws IOException, DbxException {&lt;BR /&gt;
        // Get your app key and secret from the Dropbox developers website.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    final String APP_KEY = "my key";
    final String APP_SECRET = "my appsecret";

    DbxAppInfo appInfo = new DbxAppInfo(APP_KEY, APP_SECRET);
    DbxRequestConfig config = new DbxRequestConfig("x",Locale.getDefault().toString());

    DbxWebAuthNoRedirect webAuth = new DbxWebAuthNoRedirect(config, appInfo);


    String authorizeUrl = webAuth.start();
    System.out.println("1. Go to: " + authorizeUrl);
    System.out.println("2. Click \"Allow\" (you might have to log in first)");
    System.out.println("3. Copy the authorization code.");
    String code = new BufferedReader(new InputStreamReader(System.in)).readLine().trim();

    DbxAuthFinish authFinish = webAuth.finish(code);

    DbxClient client = new DbxClient(config, authFinish.accessToken);

    System.out.println("Linked account: " + client.getAccountInfo().displayName);
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;}&lt;BR /&gt;
output:&lt;/P&gt;

&lt;P&gt;Exception in thread "main" com.dropbox.core.DbxException$NetworkIO: java.net.UnknownHostException: api.dropbox.com&lt;/P&gt;

&lt;P&gt;how to solve this exception&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:46:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-to-install-dropbox-java-sdk-steps-to-connect-java-to-dropbox/m-p/6760#M280</guid>
      <dc:creator>Maheswari S.</dc:creator>
      <dc:date>2019-05-29T09:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to install dropbox java sdk. steps to connect java to dropbox. i got secret key. but the example given for java api for dropbox throws exception.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-to-install-dropbox-java-sdk-steps-to-connect-java-to-dropbox/m-p/6761#M281</link>
      <description>&lt;P&gt;That sounds like a networking issue. Are you able to reach dropbox.com in a browser?&lt;/P&gt;

&lt;P&gt;Is there anything unusual about your network/proxy setup?&lt;/P&gt;</description>
      <pubDate>Sat, 27 Dec 2014 07:05:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/how-to-install-dropbox-java-sdk-steps-to-connect-java-to-dropbox/m-p/6761#M281</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2014-12-27T07:05:58Z</dc:date>
    </item>
  </channel>
</rss>

