<?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 Can i add proxy to the dopbox api? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-i-add-proxy-to-the-dopbox-api/m-p/222994#M11957</link>
    <description>&lt;P&gt;I had to use java dropbox&amp;nbsp;api for my app, but my school require proxy to use&amp;nbsp;the internet. so how i can add proxy to my app? if i can, can you please give me the example. &amp;nbsp;thank for the support!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:22:13 GMT</pubDate>
    <dc:creator>Đoàn</dc:creator>
    <dc:date>2019-05-29T09:22:13Z</dc:date>
    <item>
      <title>Can i add proxy to the dopbox api?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-i-add-proxy-to-the-dopbox-api/m-p/222994#M11957</link>
      <description>&lt;P&gt;I had to use java dropbox&amp;nbsp;api for my app, but my school require proxy to use&amp;nbsp;the internet. so how i can add proxy to my app? if i can, can you please give me the example. &amp;nbsp;thank for the support!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:22:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-i-add-proxy-to-the-dopbox-api/m-p/222994#M11957</guid>
      <dc:creator>Đoàn</dc:creator>
      <dc:date>2019-05-29T09:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can i add proxy to the dopbox api?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-i-add-proxy-to-the-dopbox-api/m-p/223093#M11966</link>
      <description>&lt;P&gt;Yes, if you're using the official &lt;A href="https://github.com/dropbox/dropbox-sdk-java" target="_self"&gt;API v2 Java SDK&lt;/A&gt;, you can set a proxy by &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/http/StandardHttpRequestor.html#StandardHttpRequestor-com.dropbox.core.http.StandardHttpRequestor.Config-" target="_self"&gt;constructing a&amp;nbsp;StandardHttpRequestor&lt;/A&gt;&amp;nbsp;with a &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/http/StandardHttpRequestor.Config.html" target="_self"&gt;StandardHttpRequestor.Config&lt;/A&gt;. You can build a &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/http/StandardHttpRequestor.Config.html" target="_self"&gt;StandardHttpRequestor.Config&lt;/A&gt; with a proxy set by using &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/http/StandardHttpRequestor.Config.html#builder--" target="_self"&gt;StandardHttpRequestor.Config.builder&lt;/A&gt;&amp;nbsp;to get a &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/http/StandardHttpRequestor.Config.Builder.html" target="_self"&gt;StandardHttpRequestor.Config.Builder&lt;/A&gt;&amp;nbsp;and&amp;nbsp;using &lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/http/StandardHttpRequestor.Config.Builder.html#withProxy-java.net.Proxy-" target="_self"&gt;the&amp;nbsp;withProxy method&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That would look something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;StandardHttpRequestor.Config.Builder requestorConfigBuilder = StandardHttpRequestor.Config.builder();
requestorConfigBuilder.withProxy(yourProxy);
StandardHttpRequestor.Config requestorConfig = requestorConfigBuilder.build();
StandardHttpRequestor requestor = new StandardHttpRequestor(requestorConfig);

DbxRequestConfig requestConfig = DbxRequestConfig.newBuilder("testApp/")
        .withHttpRequestor(requestor)
        .build();

DbxClientV2 client = new DbxClientV2(requestConfig, ACCESS_TOKEN);&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 May 2017 19:50:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-i-add-proxy-to-the-dopbox-api/m-p/223093#M11966</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-26T19:50:36Z</dc:date>
    </item>
  </channel>
</rss>

