<?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 Import Email shared file by api. in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180737#M7401</link>
    <description>&lt;P&gt;How can I Download file where I get shared file in mail.&lt;/P&gt;
&lt;P&gt;Is there any method in api to get this link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:33:38 GMT</pubDate>
    <dc:creator>Shilpa M.</dc:creator>
    <dc:date>2019-05-29T09:33:38Z</dc:date>
    <item>
      <title>Import Email shared file by api.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180737#M7401</link>
      <description>&lt;P&gt;How can I Download file where I get shared file in mail.&lt;/P&gt;
&lt;P&gt;Is there any method in api to get this link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:33:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180737#M7401</guid>
      <dc:creator>Shilpa M.</dc:creator>
      <dc:date>2019-05-29T09:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Import Email shared file by api.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180738#M7402</link>
      <description>&lt;P&gt;I'm not sure I understand your question. Can you clarify?&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 01:29:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180738#M7402</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-05-04T01:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Import Email shared file by api.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180739#M7403</link>
      <description>&lt;P&gt;I am using API v2 and I have problem in file download. When I shared a file with any user through email and user copy that url from the mail and paste it in url column in method&lt;/P&gt;
&lt;PRE class="bash"&gt;&lt;CODE class="bash hljs"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="hljs-number"&gt;2&lt;/SPAN&gt;/sharing/get_shared_link_metadata &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;method it return an error&lt;/P&gt;
&lt;PRE class="json"&gt;&lt;CODE class="json hljs"&gt;&lt;CODE&gt;&lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;shared_link_not_found&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In email user got link from "View Files" button&lt;IMG src="https://www.dropboxforum.com/hc/user_images/Dr-MwG2r7WDdGg67qTkBfA.png" /&gt;&lt;/P&gt;
&lt;P&gt;Please suggest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 10:45:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180739#M7403</guid>
      <dc:creator>Shilpa M.</dc:creator>
      <dc:date>2016-05-04T10:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Import Email shared file by api.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180740#M7404</link>
      <description>&lt;P&gt;Unfortunately the exact link in the email itself isn't a supported format for this endpoint. You'll need to follow the redirect on that link to expand it to the expected format,&amp;nbsp;which would look like this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/sh/abcdefgh/AiBjCkDlEmFnGoHp" rel="nofollow noreferrer"&gt;https://www.dropbox.com/sh/abcdefgh/AiBjCkDlEmFnGoHp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 00:24:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180740#M7404</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-05-05T00:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Import Email shared file by api.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180741#M7405</link>
      <description>&lt;P&gt;When I try this, the redirect is a much longer URL, and pasting that into the&lt;/P&gt;
&lt;P&gt;API explorer here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;A href="https://dropbox.github.io/dropbox-api-v2-explorer/#sharing_get_shared_link_metadata" rel="nofollow noreferrer"&gt;https://dropbox.github.io/dropbox-api-v2-explorer/#sharing_get_shared_link_metadata&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;also fails to work.&lt;/P&gt;
&lt;P&gt;This appears to be a hole in the documentation.&amp;nbsp; If someone shares a file with me,&lt;/P&gt;
&lt;P&gt;I can see it in the results of the /2/sharing/list_received_files&amp;nbsp; API (when authenticating&lt;/P&gt;
&lt;P&gt;with a Bearer token).&lt;/P&gt;
&lt;P&gt;But I can't find any way to then programmatically download that file.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 09:25:13 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180741#M7405</guid>
      <dc:creator>john b.226</dc:creator>
      <dc:date>2016-09-03T09:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Import Email shared file by api.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180742#M7406</link>
      <description>&lt;P&gt;Hi John, can you elaborate on what you mean when you say it "fails to work"? What error are you getting?&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;get_shared_link_metadata functionality in the API Explorer seems to be working for me:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://www.dropboxforum.com/hc/user_images/rHLZkawixgFQeB5u6D9HjQ.png" /&gt;&lt;/P&gt;
&lt;P&gt;Can you share the code and error, or a screenshot showing the issue?&lt;/P&gt;
&lt;P&gt;Note that if you want to download the file content, you can use&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file" target="_blank" rel="nofollow noreferrer"&gt;/2/sharing/get_shared_link_file&lt;/A&gt;&amp;nbsp;if it's a link to a file, or modify the link &lt;A href="https://www.dropbox.com/help/201" target="_blank" rel="nofollow noreferrer"&gt;as shown here&lt;/A&gt; and download from the modified link directly, for either folder or file links.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 01:11:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180742#M7406</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-09-04T01:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Import Email shared file by api.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180743#M7407</link>
      <description>&lt;P&gt;Hi Gregory,&lt;/P&gt;
&lt;P&gt;Sorry, I should have explained this better.&lt;/P&gt;
&lt;P&gt;I've shared a file with myself (using a different email account) by clicking on the "Share"&lt;/P&gt;
&lt;P&gt;button, and filling in my email address.&amp;nbsp; The automatic email then sent by Dropbox is here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://pastebin.com/3VarM5n0" rel="nofollow noreferrer"&gt;http://pastebin.com/3VarM5n0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;What I'm trying to do is go from that email (rather than a user-created email with a shared&lt;/P&gt;
&lt;P&gt;link pasted in manually, which works fine, but requires an extra step on the part of the user) to a download link.&lt;/P&gt;
&lt;P&gt;The "View file" URL ( &lt;A href="https://www.dropbox.com/l/scl/w9txMqmTNk4RBqzjpmWuZj?text=3D1" rel="nofollow noreferrer"&gt;https://www.dropbox.com/l/scl/w9txMqmTNk4RBqzjpmWuZj?text=3D1&lt;/A&gt; ) embedded in the email above does not work with the get_shared_link_metadata API, whether&lt;/P&gt;
&lt;P&gt;or not I remove the "text=3D1" or add "&amp;amp;dl=1" from/to the query.&lt;/P&gt;
&lt;P&gt;So the step I'm missing is how to go from that URL to one that *will* work with the API.&lt;/P&gt;
&lt;P&gt;I can of course click on the link manually and get the download page etc.; the point is&lt;/P&gt;
&lt;P&gt;to be able to do this from a scripted email client.&amp;nbsp; I put some effort into parsing&lt;/P&gt;
&lt;P&gt;the web page that the emailed link leads to, and tracing the javascript to see if/where&lt;/P&gt;
&lt;P&gt;a API-usable link is being generated, but I failed.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2016 18:14:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180743#M7407</guid>
      <dc:creator>john b.226</dc:creator>
      <dc:date>2016-09-04T18:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Import Email shared file by api.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180744#M7408</link>
      <description>&lt;P&gt;Thanks for elaborating John! This is related to the issue I was referring to in my comment earlier in this thread on May 4.&lt;/P&gt;
&lt;P&gt;To&amp;nbsp;expand on that though, the links included in emails like this aren't intended for programmatic consumption, but to do so, you'd need to make a normal HTPT GET request to it first to get the supported version. The response should be a redirect with a "Location" header containing the redirected address.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, note that there are different kinds of sharing in Dropbox, as well as different access controls, so I can't guarantee this will always work. For example, the sample link you included is intended for a specific recipient, so that access control will prevent you from doing exactly what you want via the API unfortunately.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 01:17:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180744#M7408</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-09-06T01:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Import Email shared file by api.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180745#M7409</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&amp;nbsp; When I follow the link received in the email from dropbox,&amp;nbsp; logging all requests in my browser's debugging console until I get to my browser's View/Save download dialogue, I don't see any requests that begin with&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/sh/abcdefgh/AiBjCkDlEmFnGoHp" rel="nofollow noreferrer"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; https://www.dropbox.com/sh/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(and there are none in the parsed html from the redirected page).&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 17:05:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180745#M7409</guid>
      <dc:creator>john b.226</dc:creator>
      <dc:date>2016-09-06T17:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Import Email shared file by api.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180746#M7410</link>
      <description>&lt;P&gt;Thanks for checking that John. Also, for reference since I didn't mention it earlier, /sh/ is for folders, and /s/ is for files.&lt;/P&gt;
&lt;P&gt;If those aren't the types you're trying to use, unfortunately I'm afraid this is an unsupported sharing flow for the API.&amp;nbsp;Apologies I can't be of more help!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 23:17:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180746#M7410</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-09-06T23:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Import Email shared file by api.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180747#M7411</link>
      <description>&lt;P&gt;Hi again Greg&lt;/P&gt;
&lt;P&gt;It seems that there's no documented way to do what I want to do.&lt;/P&gt;
&lt;P&gt;As a new user, and someone who will be receiving files from other new users, I'm surprised that:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;the most obvious way (to me) to share a file from the web interface seems to be to hit the &lt;STRONG&gt;Share&lt;/STRONG&gt; button to the right of a file, fill in an email address in the pop-up dialog, then hit &lt;STRONG&gt;Share&lt;/STRONG&gt; there, as in this screenshot:&lt;BR /&gt;&lt;IMG src="https://www.dropboxforum.com/hc/user_images/MEzsLhdsMke59FcMQ7mO1A.png" /&gt;
&lt;/LI&gt;
&lt;LI&gt;the email sent by Dropbox to me when someone does (1) has no documented way to be processed by a &lt;STRONG&gt;scripted email client&lt;/STRONG&gt;. (i.e. it works fine if I'm manually reading the email and clicking on links in a web browser, but I can't see how to automate it)&lt;/LI&gt;
&lt;LI&gt;if instead, the user clicks on the &lt;STRONG&gt;create a link&lt;/STRONG&gt; and manually copies/pastes that link into an email to me that they compose in their email client, I can easily parse the link and&lt;BR /&gt;automate file download using the V2 API.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Sorry if I'm being obtuse, but it seems the process could be made simpler and less surprising&lt;BR /&gt;if step (1)&amp;nbsp; generated an email from dropbox.com that contained a link I could handle automatically as in step (3).&lt;/P&gt;
&lt;P&gt;If I've missed something in your explanation, please elaborate.&amp;nbsp; If not, is there a way to file&lt;BR /&gt;this as a feature request?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;
&lt;P&gt;John B&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 00:15:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180747#M7411</guid>
      <dc:creator>john b.226</dc:creator>
      <dc:date>2016-09-07T00:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Import Email shared file by api.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180748#M7412</link>
      <description>&lt;P&gt;Thanks for the feedback John! It looks like you have this correct, so I'm sending this along as a feature request for support for this flow.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 00:25:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180748#M7412</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-09-07T00:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Import Email shared file by api.</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180749#M7413</link>
      <description>&lt;P&gt;Great - thanks for your patience, Gregory.&lt;/P&gt;
&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 01:14:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Import-Email-shared-file-by-api/m-p/180749#M7413</guid>
      <dc:creator>john b.226</dc:creator>
      <dc:date>2016-09-07T01:14:00Z</dc:date>
    </item>
  </channel>
</rss>

