<?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: Generation access token for V2 using V1 access key and secret key in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generation-access-token-for-V2-using-V1-access-key-and-secret/m-p/208030#M10211</link>
    <description>&lt;P&gt;You're using the same&amp;nbsp;accessKey/secretKey pair for both your app info and access token. These should actually be different pairs of strings. The app key and secret (a.k.a. consumer key and secret) identify your app. They can be found on the app's page on&amp;nbsp;the&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/apps" target="_blank"&gt;App Console&lt;/A&gt;. The access token key and secret are different strings that are specific to the user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, these two lines should look like this, with the correct and distinct values for each of the&amp;nbsp;four parameter variables:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DbxAppInfo appInfo = new DbxAppInfo(appKey, appSecret);&lt;/PRE&gt;
&lt;PRE&gt;oAuth1AccessToken = new DbxOAuth1AccessToken(oauth1AccessTokenKey, oauth1AccessTokenSecret);
&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Feb 2017 19:05:49 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-02-22T19:05:49Z</dc:date>
    <item>
      <title>Generation access token for V2 using V1 access key and secret key</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generation-access-token-for-V2-using-V1-access-key-and-secret/m-p/207935#M10205</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have been trying to generate oauth 2 access token for my app (which was created using core api 1 in java), based on the documentation provided for migration but every time I tried it I got&lt;/P&gt;&lt;P&gt;{"error": "Invalid app key (consumer key). Check your app's configuration to make sure everything is correct."}.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried both the sdk approach as well as the http one but to no avail.I am stuck . Kindly need help to figure out where am&amp;nbsp; I going wrong with this.&amp;nbsp; Below code is the one I used to fetch oauth2.0 token. Here&amp;nbsp; is the java approach I tried&lt;/P&gt;&lt;P&gt; DbxOAuth1Upgrader upgrader;&lt;BR /&gt;            DbxOAuth1AccessToken oAuth1AccessToken;&lt;BR /&gt;&lt;BR /&gt;            DbxRequestConfig requestConfig = new DbxRequestConfig(appName);&lt;BR /&gt;            DbxAppInfo appInfo = new DbxAppInfo(accessKey, secretKey);&lt;BR /&gt;            upgrader = new DbxOAuth1Upgrader(requestConfig, appInfo);&lt;BR /&gt;            oAuth1AccessToken = new DbxOAuth1AccessToken(accessKey, secretKey);&lt;BR /&gt;&lt;BR /&gt;            String newToken = upgrader.createOAuth2AccessToken(oAuth1AccessToken);&lt;BR /&gt;            upgrader.disableOAuth1AccessToken(oAuth1AccessToken);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same accesskey and secretKey are working fine with the coreAPI 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:25:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generation-access-token-for-V2-using-V1-access-key-and-secret/m-p/207935#M10205</guid>
      <dc:creator>RDev</dc:creator>
      <dc:date>2019-05-29T09:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Generation access token for V2 using V1 access key and secret key</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generation-access-token-for-V2-using-V1-access-key-and-secret/m-p/208030#M10211</link>
      <description>&lt;P&gt;You're using the same&amp;nbsp;accessKey/secretKey pair for both your app info and access token. These should actually be different pairs of strings. The app key and secret (a.k.a. consumer key and secret) identify your app. They can be found on the app's page on&amp;nbsp;the&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/apps" target="_blank"&gt;App Console&lt;/A&gt;. The access token key and secret are different strings that are specific to the user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, these two lines should look like this, with the correct and distinct values for each of the&amp;nbsp;four parameter variables:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DbxAppInfo appInfo = new DbxAppInfo(appKey, appSecret);&lt;/PRE&gt;
&lt;PRE&gt;oAuth1AccessToken = new DbxOAuth1AccessToken(oauth1AccessTokenKey, oauth1AccessTokenSecret);
&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Feb 2017 19:05:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generation-access-token-for-V2-using-V1-access-key-and-secret/m-p/208030#M10211</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-22T19:05:49Z</dc:date>
    </item>
  </channel>
</rss>

