<?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: Retrieve Shared URL with JavaScript SDK without Authentication in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Retrieve-Shared-URL-with-JavaScript-SDK-without-Authentication/m-p/272835#M16209</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/653210"&gt;@AlanDT&lt;/a&gt;&amp;nbsp;Thanks for following up. For public data sharing like this, the modified shared link method that thelwang reccomended may be a good alternative.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Apr 2018 16:00:43 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-04-17T16:00:43Z</dc:date>
    <item>
      <title>Retrieve Shared URL with JavaScript SDK without Authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Retrieve-Shared-URL-with-JavaScript-SDK-without-Authentication/m-p/271168#M16033</link>
      <description>&lt;P&gt;Hi, I am attempting to use the JavaScript SDK to retrieve a publicly shared URL.&amp;nbsp; This method succeeds if I first authenticate the user.&lt;/P&gt;&lt;PRE&gt;dbx.sharingGetSharedLinkFile({&lt;SPAN&gt;'url'&lt;/SPAN&gt;: &lt;SPAN&gt;sharedUrl&lt;/SPAN&gt;}).then(...);&lt;/PRE&gt;&lt;P&gt;I would like to allow users of my application who do not have a Dropbox account to be able to access files shared by another user who does have a Dropbox account.&amp;nbsp; I was hoping to use some form of "&lt;A href="https://www.dropbox.com/developers/reference/auth-types" target="_self"&gt;App Authentication&lt;/A&gt;" without specifying a user.&amp;nbsp; If I simply provide my client id (with or without secret), I get "The given OAuth 2 access token is malformed."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All examples I've found show how to use the HTTP SDK, but I would prefer to use the JavaScript SDK.&amp;nbsp;&amp;nbsp; Is there a way to access a shared link through the JavaScript SDK without having to authenticate the user?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:14:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Retrieve-Shared-URL-with-JavaScript-SDK-without-Authentication/m-p/271168#M16033</guid>
      <dc:creator>AlanDT</dc:creator>
      <dc:date>2019-05-29T09:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Shared URL with JavaScript SDK without Authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Retrieve-Shared-URL-with-JavaScript-SDK-without-Authentication/m-p/271241#M16039</link>
      <description>The sharingGetSharedLinkFile method in the API v2 JavaScript SDK, as well as the corresponding /2/sharing/get_shared_link_file endpoint itself, do not support app authentication, so you will need an access token to call them unfortunately.&lt;BR /&gt;&lt;BR /&gt;I'll send this along as a feature request for app authentication support for this, but I can't promise if/when that would be implemented.</description>
      <pubDate>Wed, 04 Apr 2018 15:53:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Retrieve-Shared-URL-with-JavaScript-SDK-without-Authentication/m-p/271241#M16039</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-04T15:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Shared URL with JavaScript SDK without Authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Retrieve-Shared-URL-with-JavaScript-SDK-without-Authentication/m-p/271333#M16050</link>
      <description>&lt;P&gt;What do you want to do with the&amp;nbsp;file at Dropbox's shared links?&amp;nbsp; Since its just a public link, all you should really be able to get from the link is the file. (the path/permisions/etc of the file in the user's dropbox&amp;nbsp;are not public)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To just read the file, take the URL and replace "?dl=0" with "?raw=1".&amp;nbsp; You can try "dl=1" too but I think "raw=1" works better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems a little hacky but Dropbox documents it here so they must be committed to supporting it:&amp;nbsp;&lt;A href="https://www.dropbox.com/help/desktop-web/force-download" target="_blank"&gt;https://www.dropbox.com/help/desktop-web/force-download&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(if you're downloading a folder, not sure what Dropbox does, probably gives you a zip. Also, make sure your app can follow redirects since Dropbox will bounce you around before returning the actual file)&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 03:23:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Retrieve-Shared-URL-with-JavaScript-SDK-without-Authentication/m-p/271333#M16050</guid>
      <dc:creator>thelwang</dc:creator>
      <dc:date>2018-04-05T03:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Shared URL with JavaScript SDK without Authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Retrieve-Shared-URL-with-JavaScript-SDK-without-Authentication/m-p/272715#M16199</link>
      <description>&lt;P&gt;First of all, thank you for your quick response.&amp;nbsp; This is a side project and the time I get to spend working on it is limited.&amp;nbsp; So my replies will probably not be so quck!&amp;nbsp; &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the specific idea regarding changing the URL.&amp;nbsp; I had seen other posts about HTTP downloads, but had not run across this particular parameter change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm writing a mobile Cordova app for a non-profit client who wants to use Dropbox as a way of sharing information publicly with others.&amp;nbsp; Eventually, Dropbox would be just one of several ways to share the information, as I've made the backend datastore adaptable.&amp;nbsp; I've had success using the JS Dropbox API to log-in and create the datastore as a series of files storing JSON objects.&amp;nbsp; There is a base file (e.g. index file) in the app directory which points to subdirectories with individual files.&amp;nbsp; Since the information is intended to be consumed publicly (through the same app), I cannot assume every consumer of the information can login or create a Dropbox account just to access the information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, since the application is initially planned to be used in a third-world country, I would like to limit the amount of data transfer just to what is necessary.&amp;nbsp; Thus, downloading an entire directory (even zipped) may not be ideal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In conclusion, I can use HTTP downloads to access the information if necessary; but I would prefer to use the JS API if at all possible.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 01:56:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Retrieve-Shared-URL-with-JavaScript-SDK-without-Authentication/m-p/272715#M16199</guid>
      <dc:creator>AlanDT</dc:creator>
      <dc:date>2018-04-17T01:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Shared URL with JavaScript SDK without Authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Retrieve-Shared-URL-with-JavaScript-SDK-without-Authentication/m-p/272716#M16200</link>
      <description>&lt;P&gt;Greg, thank you for your quick response and for putting in the feature request to access publicly available data without authenticating.&amp;nbsp; Please see my other response below for a more detailed account of what I'm attempting to do.&amp;nbsp; Perhaps there is another way I have not considered?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 01:59:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Retrieve-Shared-URL-with-JavaScript-SDK-without-Authentication/m-p/272716#M16200</guid>
      <dc:creator>AlanDT</dc:creator>
      <dc:date>2018-04-17T01:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve Shared URL with JavaScript SDK without Authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Retrieve-Shared-URL-with-JavaScript-SDK-without-Authentication/m-p/272835#M16209</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/653210"&gt;@AlanDT&lt;/a&gt;&amp;nbsp;Thanks for following up. For public data sharing like this, the modified shared link method that thelwang reccomended may be a good alternative.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 16:00:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Retrieve-Shared-URL-with-JavaScript-SDK-without-Authentication/m-p/272835#M16209</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-17T16:00:43Z</dc:date>
    </item>
  </channel>
</rss>

