<?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: Using ETL tool's REST utility to download a folder with REST get URL in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171360#M6471</link>
    <description>&lt;P&gt;The body of the response for the API call will contain more information. Please print that out in order to see what the issue is.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2016 01:21:13 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-04-05T01:21:13Z</dc:date>
    <item>
      <title>Using ETL tool's REST utility to download a folder with REST get URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171353#M6464</link>
      <description>&lt;P&gt;I wish to use the etl tool's REST utility to download a file from dropbox. I read in the developer docs that we can use this URL:&amp;nbsp;&lt;/P&gt;
&lt;PRE class="literal-block"&gt;https://&lt;STRONG&gt;content&lt;/STRONG&gt;.dropboxapi.com/1/files/auto/&amp;lt;path&amp;gt;&lt;/PRE&gt;
&lt;P&gt;But how do we specify the path? Is it the path starting from the folder name? but what about authentication? How will the URL divert to the correct user and folder?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:34:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171353#M6464</guid>
      <dc:creator>Manmeet Kaur R.</dc:creator>
      <dc:date>2019-05-29T09:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using ETL tool's REST utility to download a folder with REST get URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171354#M6465</link>
      <description>&lt;P&gt;For reference, this is a Core API a.k.a. API v1 endpoint, documented here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers-v1/core/docs#files_put" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers-v1/core/docs#files_put&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;API v1 supports both OAuth 1 and OAuth 2 for authentication, with OAuth 2 being preferred. When you make an API call, the OAuth access token you supply with it identifies the relevant account.&lt;/P&gt;
&lt;P&gt;To specify the path you want to upload to in that account, you put the path on the URL (where the &amp;lt;path&amp;gt; placeholder is shown). This should be the entire path, including any parent folders, as well as the desired filename. E.g., to upload a file as test.txt inside a "Documents" folder in root, the path would be: "/Documents/test.txt".&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 02:13:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171354#M6465</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-31T02:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using ETL tool's REST utility to download a folder with REST get URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171355#M6466</link>
      <description>&lt;P&gt;Thanks, I was trying to use dropbox/foldername or home/foldername and was getting 404. Now it is working fine!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One more question or confirmation, this is the path I followed:&lt;/P&gt;
&lt;P&gt;1. Created a new app&lt;/P&gt;
&lt;P&gt;2. used the link to allow access to App and generate the authorization code:&lt;/P&gt;
&lt;PRE class="dbprettyprint prettyprint lang-html"&gt;&lt;SPAN class="pln"&gt;https://www.dropbox.com/1/oauth2/authorize?client_id=&lt;/SPAN&gt;&lt;SPAN class="tag"&gt;&amp;lt;YOUR-APP-KEY&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;&amp;amp;response_type=code&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;3. then using the below command generated the authorization token for use in the header of the HTTP Request:&lt;/P&gt;
&lt;PRE class="dbprettyprint prettyprint lang-html"&gt;&lt;SPAN class="pln"&gt;curl https://api.dropbox.com/1/oauth2/token -d grant_type=authorization_code -d code=&lt;/SPAN&gt;&lt;SPAN class="tag"&gt;&amp;lt;YOUR-AUTHORIZATION-CODE&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; -u &lt;/SPAN&gt;&lt;SPAN class="tag"&gt;&amp;lt;YOUR-APP-KEY&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;:&lt;/SPAN&gt;&lt;SPAN class="tag"&gt;&amp;lt;YOUR-APP-SECRET&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;My question is &amp;nbsp;- can we generate the token using the GENERATE button in the OAuth2 section of MyApp&amp;nbsp;and used it as Authorization: Bearer &amp;lt;token&amp;gt; in the header?&lt;/P&gt;
&lt;P&gt;Please advise.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 02:29:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171355#M6466</guid>
      <dc:creator>Manmeet Kaur R.</dc:creator>
      <dc:date>2016-03-31T02:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using ETL tool's REST utility to download a folder with REST get URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171356#M6467</link>
      <description>&lt;P&gt;Yes, you can use generated access tokens there. OAuth 2 access tokens generated via the App Console work the same as OAuth 2 access tokens retrieved via the OAuth flow (i.e., /oauth2/authorize and /oauth2/token). The only difference is that you can only generate an access token for your own account, whereas the OAuth flow can be used for any account.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 03:18:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171356#M6467</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-31T03:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using ETL tool's REST utility to download a folder with REST get URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171357#M6468</link>
      <description>&lt;P&gt;Is there a way to download all the files in the folder? When I just end my URL at the folder name, it gives me 404 error.&lt;/P&gt;
&lt;P&gt;Or is there a way to user regular expressions in the URL?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2016 03:57:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171357#M6468</guid>
      <dc:creator>Manmeet Kaur R.</dc:creator>
      <dc:date>2016-04-02T03:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using ETL tool's REST utility to download a folder with REST get URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171358#M6469</link>
      <description>&lt;P&gt;The&amp;nbsp;Dropbox API doesn't offer a way to download an entire folder at once, or files in bulk, so you'll need to iterate through the specific files you want to download.&amp;nbsp;I'll be sure to pass this along as a feature request though.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2016 05:24:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171358#M6469</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-04-02T05:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using ETL tool's REST utility to download a folder with REST get URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171359#M6470</link>
      <description>&lt;P&gt;I am trying to copy a file from one folder to another, but I am getting a 400 error and it does not state what is the error. my payload is like this :&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt; "root": "auto"&lt;BR /&gt; "from_path": "jobViteTest/file.csv"&lt;BR /&gt; "to_path": "jobViteTest/archive/new_file.csv"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;where both from and to paths are existing but I want to copy and rename the&amp;nbsp;file file.csv to new_file.csv. Can you please advise.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 22:56:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171359#M6470</guid>
      <dc:creator>Manmeet Kaur R.</dc:creator>
      <dc:date>2016-04-04T22:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using ETL tool's REST utility to download a folder with REST get URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171360#M6471</link>
      <description>&lt;P&gt;The body of the response for the API call will contain more information. Please print that out in order to see what the issue is.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 01:21:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171360#M6471</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-04-05T01:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using ETL tool's REST utility to download a folder with REST get URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171361#M6472</link>
      <description>&lt;P&gt;I tried to execute this time using POSTMAN as the tool I am using does not print the response.&amp;nbsp;First Postman was not able to complete OAuth 2.0 authorization when I tried to generate the token. Nonetheless, I used the callback api and put it in the settings page and used the generated token. Then it gave me this error:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;{&lt;BR /&gt; "error": "Must send either a from_path or a from_copy_ref"&lt;BR /&gt;}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I was giving parameters like root, from_path, to_path in the Body as JSON. I even tried to pass these parameters as headers, but still the same error.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 01:41:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171361#M6472</guid>
      <dc:creator>Manmeet Kaur R.</dc:creator>
      <dc:date>2016-04-05T01:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using ETL tool's REST utility to download a folder with REST get URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171362#M6473</link>
      <description>&lt;P&gt;For API v1,&amp;nbsp;you can send these parameters as URL parameters, or form encoded in the body. For example, either of these are valid:&lt;/P&gt;
&lt;PRE&gt;curl -X "POST" "https://api.dropboxapi.com/1/fileops/copy" \&lt;BR /&gt; -H "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \&lt;BR /&gt; --data "root=auto&amp;amp;from_path=/test.txt&amp;amp;to_path=/test_new.txt"&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;PRE&gt;curl -X "POST" "https://api.dropboxapi.com/1/fileops/copy?root=auto&amp;amp;from_path=/test.txt&amp;amp;to_path=/test_new.txt" \&lt;BR /&gt; -H "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;"&lt;/PRE&gt;
&lt;P&gt;(Perhaps you looked at some API v2 documentation at some point? API v2 does take JSON in the body. We generally would recommend using API v2 instead of&amp;nbsp;API v1, if it has all of the functionality you need anyway.)&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 03:05:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-ETL-tool-s-REST-utility-to-download-a-folder-with-REST-get/m-p/171362#M6473</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-04-05T03:05:28Z</dc:date>
    </item>
  </channel>
</rss>

