<?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: How to get OAuth2 access token from OAuth1 token and secret with API v2 JDK in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-OAuth2-access-token-from-OAuth1-token-and-secret-with/m-p/212511#M10770</link>
    <description>This error message indicates that the access token you're using (client_app_key and client_app_secret in your code) doesn't correspond to the app key and secret (my_app_key and my_app_secret in your code) that you're using.&lt;BR /&gt;&lt;BR /&gt;When making this case, these pairs needs to match. That is, the access token you're trying to upgrade must have originally been retrieved using an app key and secret for the same app as you're using now. &lt;BR /&gt;&lt;BR /&gt;So in this case, you'll need to swap in the correct app key and secret (my_app_key and my_app_secret in your code) to be able to upgrade this access token (client_app_key and client_app_secret in your code).</description>
    <pubDate>Mon, 20 Mar 2017 18:47:39 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-03-20T18:47:39Z</dc:date>
    <item>
      <title>How to get OAuth2 access token from OAuth1 token and secret with API v2 JDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-OAuth2-access-token-from-OAuth1-token-and-secret-with/m-p/212477#M10759</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;String my_app_key = "test1234";
String my_app_secret = "test567";
String client_app_key = "cltest123";
String client_app_secret = "cltest456";
&amp;nbsp;
DbxAppInfo appInfo = new DbxAppInfo(my_app_key, my_app_secret);
DbxOAuth1AccessToken oauth1AccessToken =
new DbxOAuth1AccessToken(client_app_key, client_app_secret);
&amp;nbsp;
DbxRequestConfig requestConfig = new DbxRequestConfig("myappname");
DbxOAuth1Upgrader upgrader = new DbxOAuth1Upgrader(requestConfig, appInfo);
String s = upgrader.createOAuth2AccessToken(oauth1AccessToken);
System.out.println("s====== " + s);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my code to fetch accesstoken key from V1.I am getting error of&lt;/P&gt;
&lt;P&gt;"unexpected HTTP status code: 403: {"error": "Access token does not belong to this app."}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help me out.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-OAuth2-access-token-from-OAuth1-token-and-secret-with/m-p/212477#M10759</guid>
      <dc:creator>Rajarshi</dc:creator>
      <dc:date>2019-05-29T09:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get OAuth2 access token from OAuth1 token and secret with API v2 JDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-OAuth2-access-token-from-OAuth1-token-and-secret-with/m-p/212511#M10770</link>
      <description>This error message indicates that the access token you're using (client_app_key and client_app_secret in your code) doesn't correspond to the app key and secret (my_app_key and my_app_secret in your code) that you're using.&lt;BR /&gt;&lt;BR /&gt;When making this case, these pairs needs to match. That is, the access token you're trying to upgrade must have originally been retrieved using an app key and secret for the same app as you're using now. &lt;BR /&gt;&lt;BR /&gt;So in this case, you'll need to swap in the correct app key and secret (my_app_key and my_app_secret in your code) to be able to upgrade this access token (client_app_key and client_app_secret in your code).</description>
      <pubDate>Mon, 20 Mar 2017 18:47:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-OAuth2-access-token-from-OAuth1-token-and-secret-with/m-p/212511#M10770</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-20T18:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get OAuth2 access token from OAuth1 token and secret with API v2 JDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-OAuth2-access-token-from-OAuth1-token-and-secret-with/m-p/212596#M10773</link>
      <description>&lt;P&gt;Thank You very very much Greg. It's really help.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 04:55:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-OAuth2-access-token-from-OAuth1-token-and-secret-with/m-p/212596#M10773</guid>
      <dc:creator>Rajarshi</dc:creator>
      <dc:date>2017-03-21T04:55:27Z</dc:date>
    </item>
  </channel>
</rss>

