<?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 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/261644#M15254</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to migrate our API to version 2 and followed the migration guide with no success(&lt;A href="https://www.dropbox.com/developers/reference/migration-guide" target="_blank"&gt;https://www.dropbox.com/developers/reference/migration-guide&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just one example is that I am using the link below in order to connect my excel spreadsheet with our BI tool using the api v.1 and access token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api-content.dropbox.com/1/files/auto/test/test.xlsx?access_token=fMxjwRWnALAAAAAAAAAAIoYCZXxbPEt2azRbRmQJnKuVamnXJVsjti3bHI04Cobm" target="_blank"&gt;https://api-content.dropbox.com/1/files/auto/bbbb/aaa.xlsx?access_token=F&lt;/A&gt;JCKHGCGFCsWSwSsSAwSsSGssSSg...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me to migrate this example to api version2 and use this example to migrate the rest of the links?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks and I am looking forward for your response.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:15:56 GMT</pubDate>
    <dc:creator>MariosChr81290</dc:creator>
    <dc:date>2019-05-29T09:15:56Z</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/261644#M15254</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to migrate our API to version 2 and followed the migration guide with no success(&lt;A href="https://www.dropbox.com/developers/reference/migration-guide" target="_blank"&gt;https://www.dropbox.com/developers/reference/migration-guide&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just one example is that I am using the link below in order to connect my excel spreadsheet with our BI tool using the api v.1 and access token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api-content.dropbox.com/1/files/auto/test/test.xlsx?access_token=fMxjwRWnALAAAAAAAAAAIoYCZXxbPEt2azRbRmQJnKuVamnXJVsjti3bHI04Cobm" target="_blank"&gt;https://api-content.dropbox.com/1/files/auto/bbbb/aaa.xlsx?access_token=F&lt;/A&gt;JCKHGCGFCsWSwSsSAwSsSGssSSg...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me to migrate this example to api version2 and use this example to migrate the rest of the links?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks and I am looking forward for your response.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:15:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-access-token-from-API-v1-to-v2/m-p/261644#M15254</guid>
      <dc:creator>MariosChr81290</dc:creator>
      <dc:date>2019-05-29T09:15:56Z</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/261786#M15266</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In that example, you're using /1/files to access file data. In API v2, the replacement is /2/files/download:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_blank" rel="noreferrer"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-download&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's a "content-download endpoint", so the standard way of using that is via a POST with 'Authorization' and 'Dropbox-API-Arg' headers. To just use a GET with it instead though, i.e., so you can just use a URL by itself, you can use the URL parameters documented here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#formats" target="_blank" rel="noreferrer"&gt;https://www.dropbox.com/developers/documentation/http/documentation#formats&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, to access a file at "/bbbb/aaa.xlsx" the API call parameters for /2/files/download would be:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{"path": "/bbbb/aaa.xlsx"}&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;URL encoding those for use with the `arg` URL parameter, along with the 'authorization' URL parameter, the result would be:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;https://content.dropboxapi.com/2/files/download?authorization=Bearer%20ACCESS_TOKEN&amp;amp;arg=%7B%22path%22%3A%20%22%2Fbbbb%2Faaa.xlsx%22%7D&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Be sure to replace ACCESS_TOKEN with the actual access token.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 15:20:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migrating-access-token-from-API-v1-to-v2/m-p/261786#M15266</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-01-22T15:20:07Z</dc:date>
    </item>
  </channel>
</rss>

