<?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: Automate DropBox Using Script in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Automate-DropBox-Using-Script/m-p/410328#M1123</link>
    <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1286547"&gt;@jimbob1977&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you run Linux, the best place of your question isn't API section. You can get link to arbitrary file in the Dropbox folder using &lt;A title="Dropbox Commands" href="https://help.dropbox.com/installs-integrations/desktop/linux-commands" target="_blank" rel="noopener"&gt;CLI&lt;/A&gt;. Take a look on "sharelink" command. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, CLI is available only on Linux, so if you run something else, this advice isn't for you (or at least, if you don't plane switch to Linux).&lt;/P&gt;&lt;P&gt;Hope this helps to some extent.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 15:08:51 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2020-04-15T15:08:51Z</dc:date>
    <item>
      <title>Automate DropBox Using Script</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Automate-DropBox-Using-Script/m-p/409437#M1112</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I am working on a project that requires sharing of video files to different recipients.&lt;/P&gt;
&lt;P&gt;I therefor need to use script to...&lt;/P&gt;
&lt;P&gt;- Upload a file from my local folder&lt;/P&gt;
&lt;P&gt;- Share the file + get download link&lt;/P&gt;
&lt;P&gt;- Email the link to the client&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can do parts 1 and 3 - is there any documentation or advice on how to automate the share and link retreival&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 13:55:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Automate-DropBox-Using-Script/m-p/409437#M1112</guid>
      <dc:creator>jimbob1977</dc:creator>
      <dc:date>2020-04-13T13:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automate DropBox Using Script</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Automate-DropBox-Using-Script/m-p/409501#M1114</link>
      <description>&lt;P&gt;To create a shared link via the&amp;nbsp;Dropbox API, you should use the&amp;nbsp;/2/sharing/create_shared_link_with_settings endpoint:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That allows you to specify a file or folder and returns a shared link for it. You can then use the link as desired, e.g., to send it to someone. They can then download the linked file or folder from it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, to retrieve already existing shared links, you can use&amp;nbsp;/2/sharing/list_shared_links:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation" target="_self"&gt;https://www.dropbox.com/developers/documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Those have corresponding native methods for the HTTPS endpoints.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 15:05:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Automate-DropBox-Using-Script/m-p/409501#M1114</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-13T15:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Automate DropBox Using Script</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Automate-DropBox-Using-Script/m-p/410264#M1120</link>
      <description>&lt;P&gt;Hi Greg&lt;/P&gt;&lt;P&gt;Thanks for your help. &amp;nbsp;I've been looking through the API Descriptions and experimented with the API Explorer.&lt;/P&gt;&lt;P&gt;Think I'm missing the p[oint somewhere???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To upload a file I am using...&lt;/P&gt;&lt;PRE&gt;curl -X POST https://content.dropboxapi.com/2/files/upload \
  --header 'Authorization: Bearer MYAUTHCODE' \
  --header 'Content-Type: application/octet-stream' \
  --header 'Dropbox-API-Arg: {"path":"/MyLocalFolder/Clown.jpeg"}' &lt;/PRE&gt;&lt;P&gt;When I run this I get the error...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{"error_summary": "path/conflict/file/...", "error": {".tag": "path", "reason": {".tag": "conflict", "conflict": {".tag": "file"}}, "upload_session_id": "AAAAAAAAA_Hm7Dp23cYtfg"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The file doesnt exist on my dropbox and is less than 150MB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas as to where I'm going wrong??&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 12:28:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Automate-DropBox-Using-Script/m-p/410264#M1120</guid>
      <dc:creator>jimbob1977</dc:creator>
      <dc:date>2020-04-15T12:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Automate DropBox Using Script</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Automate-DropBox-Using-Script/m-p/410284#M1121</link>
      <description>&lt;P&gt;OK - So I've seen the error of my ways.&lt;/P&gt;&lt;P&gt;To clarify...&lt;/P&gt;&lt;P&gt;The path - is the path withinmy dropbox Apps folder where the file will be located - Correct???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stupid Question - how does it know which file to upload ?? or isd it as simple as it finds a file by same name on local drive?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 13:19:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Automate-DropBox-Using-Script/m-p/410284#M1121</guid>
      <dc:creator>jimbob1977</dc:creator>
      <dc:date>2020-04-15T13:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Automate DropBox Using Script</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Automate-DropBox-Using-Script/m-p/410318#M1122</link>
      <description>&lt;P&gt;The "path" parameter you specify is the path in the&amp;nbsp;Dropbox account where you want to put the uploaded file. If your app uses the "app folder" permission, that path will be used relative to the app folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "path/conflict/file" error indicates that there's already something at the specified path, so the upload couldn't complete. Check out &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_self"&gt;the&amp;nbsp;/2/files/upload "mode" parameter documentation&lt;/A&gt; for information on configuring what happens in that case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "path" parameter value is only used to specifying where to upload the file in Dropbox. It is not used to find or specify what data to upload. The data for the file upload is whatever you send in the request body.&amp;nbsp;When using curl on the command line like this, you can specify that data via curl's "--data-binary" option. There's an example of doing so included in &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_self"&gt;the&amp;nbsp;/2/files/upload documentation&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 14:52:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Automate-DropBox-Using-Script/m-p/410318#M1122</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-15T14:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Automate DropBox Using Script</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Automate-DropBox-Using-Script/m-p/410328#M1123</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1286547"&gt;@jimbob1977&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you run Linux, the best place of your question isn't API section. You can get link to arbitrary file in the Dropbox folder using &lt;A title="Dropbox Commands" href="https://help.dropbox.com/installs-integrations/desktop/linux-commands" target="_blank" rel="noopener"&gt;CLI&lt;/A&gt;. Take a look on "sharelink" command. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@F55D1311E4D274BF094217A54A6087D3/images/emoticons/1f609.png" alt=":wink:" title=":wink:" /&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, CLI is available only on Linux, so if you run something else, this advice isn't for you (or at least, if you don't plane switch to Linux).&lt;/P&gt;&lt;P&gt;Hope this helps to some extent.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 15:08:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Automate-DropBox-Using-Script/m-p/410328#M1123</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2020-04-15T15:08:51Z</dc:date>
    </item>
  </channel>
</rss>

