<?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 Re: Eror 409 Conflict on auth request on Java code in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Eror-409-Conflict-on-auth-request-on-Java-code/m-p/385799#M21444</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I see you're trying to call the /2/auth/token/from_oauth1 endpoint. This endpoint is only meant for use if you already have pre-existing OAuth 1 access tokens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OAuth 1 access tokens were a feature of an old version of the Dropbox API, API v1. If you're just starting now, you wouldn't have any, and should just use OAuth 2 with API v2. Are you just developing your app now, or are you migrating from API v1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't have pre-existing OAuth 1 access tokens, you should send the user through the normal OAuth 2 app authorization flow. You can find information on how that works in the OAuth guide here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/reference/oauth-guide" rel="noreferrer" target="_blank"&gt;https://www.dropbox.com/developers/reference/oauth-guide&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation for the OAuth 2 app authorization flow can be found here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" rel="noreferrer" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#authorization&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2019 20:03:15 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-12-23T20:03:15Z</dc:date>
    <item>
      <title>Eror 409 Conflict on auth request on Java code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Eror-409-Conflict-on-auth-request-on-Java-code/m-p/385794#M21443</link>
      <description>&lt;P&gt;Hello i have such problem with request for getting&amp;nbsp;&lt;SPAN&gt;OAuth 2.0&lt;/SPAN&gt; token with part of documentation"token from oauth 1.0&lt;BR /&gt;Have some code with request&lt;/P&gt;&lt;PRE&gt;curl -X POST https://api.dropboxapi.com/2/auth/token/from_oauth1 \
    --header "Authorization: Basic &lt;SPAN class="app-key-and-secret"&gt;&amp;lt;my basic token&amp;gt;&lt;/SPAN&gt;" \
    --header "Content-Type: application/json" \
    --data "{\"oauth1_token\": \"&amp;lt;my token&amp;gt;\",\"oauth1_token_secret\": \"&amp;lt;my token secret\"}"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;And Java request as&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"{&lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;oauth1_token&lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;+&lt;SPAN&gt;app_token&lt;/SPAN&gt;+&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;oauth1_token_secret&lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;+&lt;SPAN&gt;token_secret&lt;/SPAN&gt;+&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;}"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;where app_token and token_secret is Static Strings with app token and token secret.&lt;BR /&gt;And have eror 409 Conflict&lt;BR /&gt;I look my code for spaces on token or secret or request but dont see it.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 19:46:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Eror-409-Conflict-on-auth-request-on-Java-code/m-p/385794#M21443</guid>
      <dc:creator>oleg22</dc:creator>
      <dc:date>2019-12-23T19:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Eror 409 Conflict on auth request on Java code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Eror-409-Conflict-on-auth-request-on-Java-code/m-p/385799#M21444</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I see you're trying to call the /2/auth/token/from_oauth1 endpoint. This endpoint is only meant for use if you already have pre-existing OAuth 1 access tokens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OAuth 1 access tokens were a feature of an old version of the Dropbox API, API v1. If you're just starting now, you wouldn't have any, and should just use OAuth 2 with API v2. Are you just developing your app now, or are you migrating from API v1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't have pre-existing OAuth 1 access tokens, you should send the user through the normal OAuth 2 app authorization flow. You can find information on how that works in the OAuth guide here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/reference/oauth-guide" rel="noreferrer" target="_blank"&gt;https://www.dropbox.com/developers/reference/oauth-guide&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation for the OAuth 2 app authorization flow can be found here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" rel="noreferrer" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#authorization&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 20:03:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Eror-409-Conflict-on-auth-request-on-Java-code/m-p/385799#M21444</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-12-23T20:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Eror 409 Conflict on auth request on Java code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Eror-409-Conflict-on-auth-request-on-Java-code/m-p/385802#M21445</link>
      <description>&lt;P&gt;I need getting acces token at my java code and put it to create folder request.&lt;BR /&gt;If i put OAuth2 token static in code it works, but my task is getting this token by another request.&lt;BR /&gt;I see it at guide by link:&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-from_oauth1" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#auth-token-from_oauth1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 20:25:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Eror-409-Conflict-on-auth-request-on-Java-code/m-p/385802#M21445</guid>
      <dc:creator>oleg22</dc:creator>
      <dc:date>2019-12-23T20:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Eror 409 Conflict on auth request on Java code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Eror-409-Conflict-on-auth-request-on-Java-code/m-p/385808#M21446</link>
      <description>&lt;P&gt;To retrieve an OAuth 2 access token for the user, you should use &lt;A href="https://www.dropbox.com/developers/reference/oauth-guide" target="_self"&gt;the Dropbox OAuth 2 app authorization flow&lt;/A&gt;. You can find more information on that in &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_self"&gt;the documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;By the way, we do offer &lt;A href="https://github.com/dropbox/dropbox-sdk-java" target="_self"&gt;an official&amp;nbsp;Dropbox API v2 Java SDK&lt;/A&gt;. We&amp;nbsp;recommend using that if possible. It implements most of the authorization flow for you, such as seen &lt;A href="https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/web-file-browser/src/main/java/com/dropbox/core/examples/web_file_browser/DropboxAuth.java" target="_self"&gt;here in this example web app&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 20:57:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Eror-409-Conflict-on-auth-request-on-Java-code/m-p/385808#M21446</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-12-23T20:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Eror 409 Conflict on auth request on Java code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Eror-409-Conflict-on-auth-request-on-Java-code/m-p/385816#M21447</link>
      <description>&lt;P&gt;Weare i can get some data as&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; "account_id": "dbid:AAH4f99T0taONIb-OurWxbNQ6ywGRopQngc", "uid": "12345"&lt;/PRE&gt;&lt;P&gt;i send request in java code&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;access_token&lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;\"xxxxxxxxxxxx&lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;token_type&lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;bearer&lt;/SPAN&gt;&lt;SPAN&gt;\"&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;and get a&lt;BR /&gt;HttpResponseProxy{HTTP/1.1 400 Bad Request [Server: nginx, Date: Mon, 23 Dec 2019 22:13:46 GMT, Content-Type: application/json, Transfer-Encoding: chunked, Connection: keep-alive, Content-Security-Policy: sandbox; frame-ancestors 'none', X-Dropbox-Request-Id: 6a18347a584a219d1e1d092b6eefb883, X-Frame-Options: DENY, X-Content-Type-Options: nosniff, Content-Disposition: attachment; filename='error'] ResponseEntityProxy{[Content-Type: application/json,Chunked: true]}}&lt;BR /&gt;I need to use only HTTP request's without java dropbox API &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 22:16:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Eror-409-Conflict-on-auth-request-on-Java-code/m-p/385816#M21447</guid>
      <dc:creator>oleg22</dc:creator>
      <dc:date>2019-12-23T22:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Eror 409 Conflict on auth request on Java code</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Eror-409-Conflict-on-auth-request-on-Java-code/m-p/386072#M21459</link>
      <description>&lt;P&gt;These 'account_id', 'uid', 'access_token', and 'token_type' values are returned by &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_self"&gt;the Dropbox&amp;nbsp;/oauth2/token endpoint&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;You would call the&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_self"&gt;the Dropbox&amp;nbsp;/oauth2/token endpoint&lt;/A&gt;&amp;nbsp;if you're using &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize" target="_self"&gt;the&amp;nbsp;Dropbox OAuth 2 "code" flow&lt;/A&gt;. You can find information on what your request should look like in the documentation for &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_self"&gt;the Dropbox&amp;nbsp;/oauth2/token endpoint&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;In any case, make sure you print out the response body for a more specific error message when you get an error like that.&lt;/P&gt;
&lt;P&gt;You can see a live demo of the OAuth app authorization flow in &lt;A href="https://mdwebhook.herokuapp.com/" target="_self"&gt;this sample app&lt;/A&gt; which runs &lt;A href="https://github.com/dropbox/mdwebhook" target="_self"&gt;this code&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 17:38:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Eror-409-Conflict-on-auth-request-on-Java-code/m-p/386072#M21459</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-12-26T17:38:40Z</dc:date>
    </item>
  </channel>
</rss>

