<?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: Script (BAT or ps1) to download file from link that is password protected in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Script-BAT-or-ps1-to-download-file-from-link-that-is-password/m-p/417276#M22468</link>
    <description>&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file" target="_self"&gt;The&amp;nbsp;/2/sharing/get_shared_link_file endpoint&lt;/A&gt; is the right way to download a file from a shared link using the&amp;nbsp;Dropbox API, and the code samples looks correct in general.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the output you shared, it looks like the issue is with the formatting/escaping of the characters in the sample for the environment you're using. Specifically, it looks like those line continuations (using / ) are breaking, causing your client to send an incorrect request.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll need to reformat the command to be formatted correctly for your environment. I&amp;nbsp;recommend taking out the line continuations to start with, for the sake of simplicity. You may also need to check how you should escape the quote characters in your environment.&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 15:40:21 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-05-05T15:40:21Z</dc:date>
    <item>
      <title>Script (BAT or ps1) to download file from link that is password protected</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Script-BAT-or-ps1-to-download-file-from-link-that-is-password/m-p/417112#M22462</link>
      <description>&lt;P&gt;I have been searching for a way to create a bat script(prefered) or powershell script to download files from dropbox via link that are password protected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have searched and found the curl might be able to do it, but all of the examples I have found do not work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Examples of what I have found:&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file" target="_blank" rel="noopener"&gt;https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file&lt;/A&gt;&lt;/P&gt;
&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/sharing/get_shared_link_file \
    --header "Authorization: Bearer " \
    --header "Dropbox-API-Arg: {\"url\": \"https://www.dropbox.com/s/2sn712vy1ovegw8/Prime_Numbers.txt?dl=0\",\"path\": \"/Prime_Numbers.txt\"}"&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/48895701/wget-to-access-password-protected-dropbox-link" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/48895701/wget-to-access-password-protected-dropbox-link&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -vX POST https://content.dropboxapi.com/2/sharing/get_shared_link_file \
    --header "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;" \
    --header "Dropbox-API-Arg: {\"url\": \"&amp;lt;SHARED_LINK&amp;gt;\",\"link_password\":\"&amp;lt;SHARED_LINK_PASSWORD&amp;gt;\"}"&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;One of the errors I"m getting:&lt;/P&gt;
&lt;PRE&gt;Error in call to API function "sharing/get_shared_link_file": Must provide HTTP header "Authorization" or URL parameter "authorization".* Connection #0 to host content.dropboxapi.com left intact
* Rebuilt URL to: \/
* Could not resolve host: \
* Closing connection 1
curl: (6) Could not resolve host: \
'--header' is not recognized as an internal or external command,
operable program or batch file.
'--header' is not recognized as an internal or external command,
operable program or batch file.&lt;/PRE&gt;
&lt;P&gt;Any help would be greatly appreated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 19:36:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Script-BAT-or-ps1-to-download-file-from-link-that-is-password/m-p/417112#M22462</guid>
      <dc:creator>sprocketq</dc:creator>
      <dc:date>2020-05-05T19:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script (BAT or ps1) to download file from link that is password protected</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Script-BAT-or-ps1-to-download-file-from-link-that-is-password/m-p/417276#M22468</link>
      <description>&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file" target="_self"&gt;The&amp;nbsp;/2/sharing/get_shared_link_file endpoint&lt;/A&gt; is the right way to download a file from a shared link using the&amp;nbsp;Dropbox API, and the code samples looks correct in general.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the output you shared, it looks like the issue is with the formatting/escaping of the characters in the sample for the environment you're using. Specifically, it looks like those line continuations (using / ) are breaking, causing your client to send an incorrect request.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll need to reformat the command to be formatted correctly for your environment. I&amp;nbsp;recommend taking out the line continuations to start with, for the sake of simplicity. You may also need to check how you should escape the quote characters in your environment.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 15:40:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Script-BAT-or-ps1-to-download-file-from-link-that-is-password/m-p/417276#M22468</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-05T15:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script (BAT or ps1) to download file from link that is password protected</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Script-BAT-or-ps1-to-download-file-from-link-that-is-password/m-p/417432#M22480</link>
      <description>&lt;P&gt;I've been doing more testing and research, do I have to generate a token to make this work? Is there a way to do this without creating an app token?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 02:31:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Script-BAT-or-ps1-to-download-file-from-link-that-is-password/m-p/417432#M22480</guid>
      <dc:creator>sprocketq</dc:creator>
      <dc:date>2020-05-06T02:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script (BAT or ps1) to download file from link that is password protected</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Script-BAT-or-ps1-to-download-file-from-link-that-is-password/m-p/417586#M22483</link>
      <description>&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file" target="_self"&gt;The&amp;nbsp;/2/sharing/get_shared_link_file endpoint&lt;/A&gt; does currently only support "&lt;A href="https://www.dropbox.com/developers/reference/auth-types#user" target="_self"&gt;user authentication&lt;/A&gt;" so it does require an access token. I'll pass this along as a feature request for a way to call this without an access token,&amp;nbsp;but I can't promise if or when that might be implemented.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 14:37:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Script-BAT-or-ps1-to-download-file-from-link-that-is-password/m-p/417586#M22483</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-06T14:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script (BAT or ps1) to download file from link that is password protected</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Script-BAT-or-ps1-to-download-file-from-link-that-is-password/m-p/417599#M22485</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is I am trying to create a script that my team can use to download files to client's machines on an as-needed use. I would like to password protect the files being downloaded and build that out into the script as an input. I'm trying to limit it to only nativiely built in options built into the Windows platform.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any other avenues I should look at, that I'm not thinking of?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 14:59:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Script-BAT-or-ps1-to-download-file-from-link-that-is-password/m-p/417599#M22485</guid>
      <dc:creator>sprocketq</dc:creator>
      <dc:date>2020-05-06T14:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Script (BAT or ps1) to download file from link that is password protected</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Script-BAT-or-ps1-to-download-file-from-link-that-is-password/m-p/417625#M22488</link>
      <description>&lt;P&gt;Dropbox does offer another way for programmatically downloading files from shared links, as &lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_self"&gt;documented here&lt;/A&gt;, but that doesn't offer an option for specifying a password. So, if you need to password-protect the link, that won't work.&amp;nbsp;Dropbox doesn't offer anything like this beyond these two methods though.&lt;/P&gt;</description>
      <pubDate>Wed, 06 May 2020 15:39:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Script-BAT-or-ps1-to-download-file-from-link-that-is-password/m-p/417625#M22488</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-05-06T15:39:37Z</dc:date>
    </item>
  </channel>
</rss>

