<?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: Migrating access token from API v1 to v2 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-access-token-from-API-v1-to-v2/m-p/223763#M12048</link>
    <description>&lt;P&gt;Thanks for reaching out. I would recommend taking a look at the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/" target="_self"&gt;DbxOAuth1Upgrader&lt;/A&gt;&amp;nbsp;class, which allows you to migrate OAuth 1.0 tokens to OAuth 2.0 tokens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In OAuth 2.0, there is no access token secret, only an access token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you have additional questions. Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2017 20:51:15 GMT</pubDate>
    <dc:creator>Stephen C.14</dc:creator>
    <dc:date>2017-05-31T20:51:15Z</dc:date>
    <item>
      <title>Migrating access token from API v1 to v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-access-token-from-API-v1-to-v2/m-p/223576#M12038</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using Java SDK v1.7 and have stored access tokens of my users in database. I realized that I need to have access token key and access token secret when I wanted to automatically upgrade access tokens to v2.&lt;/P&gt;&lt;P&gt;But I do not know how to get those access token secrets. I am not aware that SDK v1 was providing such functionality to get both values, only access token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-en"&gt;DbxAuthFinish contains method getAccessToken to get only access token. And it was the last step when doing oauth dance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-en"&gt;Can you suggest me how to continue with the migration, please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-en"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:22:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-access-token-from-API-v1-to-v2/m-p/223576#M12038</guid>
      <dc:creator>d3c0y</dc:creator>
      <dc:date>2019-05-29T09:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating access token from API v1 to v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-access-token-from-API-v1-to-v2/m-p/223763#M12048</link>
      <description>&lt;P&gt;Thanks for reaching out. I would recommend taking a look at the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/" target="_self"&gt;DbxOAuth1Upgrader&lt;/A&gt;&amp;nbsp;class, which allows you to migrate OAuth 1.0 tokens to OAuth 2.0 tokens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In OAuth 2.0, there is no access token secret, only an access token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you have additional questions. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 20:51:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-access-token-from-API-v1-to-v2/m-p/223763#M12048</guid>
      <dc:creator>Stephen C.14</dc:creator>
      <dc:date>2017-05-31T20:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating access token from API v1 to v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-access-token-from-API-v1-to-v2/m-p/223824#M12066</link>
      <description>&lt;P&gt;I can see method:&lt;/P&gt;&lt;PRE&gt;String &lt;SPAN&gt;createOAuth2AccessToken&lt;/SPAN&gt;(DbxOAuth1AccessToken token)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;which&amp;nbsp;takes access token object of version 1 but when you want to create the object you have to pass to the constructor:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;key&lt;/LI&gt;&lt;LI&gt;secret&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;SPAN&gt;public &lt;/SPAN&gt;&lt;SPAN&gt;DbxOAuth1AccessToken&lt;/SPAN&gt;(String key&lt;SPAN&gt;, &lt;/SPAN&gt;String secret)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; and I do not have secret ...&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 07:13:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-access-token-from-API-v1-to-v2/m-p/223824#M12066</guid>
      <dc:creator>d3c0y</dc:creator>
      <dc:date>2017-06-01T07:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating access token from API v1 to v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-access-token-from-API-v1-to-v2/m-p/223900#M12070</link>
      <description>&lt;P&gt;Ah, I see. If you have been using the `getAccessToken()` method for access tokens, then you do not need to perform a token migration, as you are already using OAuth 2.0 tokens, which work for both API v1 and API v2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this the case for you?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 18:42:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-access-token-from-API-v1-to-v2/m-p/223900#M12070</guid>
      <dc:creator>Stephen C.14</dc:creator>
      <dc:date>2017-06-01T18:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating access token from API v1 to v2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-access-token-from-API-v1-to-v2/m-p/224003#M12090</link>
      <description>Ah, you are right. I was little bit confused with the v2 of API ... I thought there is also a change in the OAuth.&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Fri, 02 Jun 2017 10:40:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-access-token-from-API-v1-to-v2/m-p/224003#M12090</guid>
      <dc:creator>d3c0y</dc:creator>
      <dc:date>2017-06-02T10:40:59Z</dc:date>
    </item>
  </channel>
</rss>

