<?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 Curl &amp;amp; Dropbox API to upload files to a DB request link in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Curl-amp-Dropbox-API-to-upload-files-to-a-DB-request-link/m-p/519321#M25363</link>
    <description>&lt;P&gt;Thanks. That makes sense. I was hoping that there would be an easy way to call a curl command from a script to do quick uploads to the request link but, it sounds like it isn't as simple as I thought.&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 18:18:00 GMT</pubDate>
    <dc:creator>Rockymtns99</dc:creator>
    <dc:date>2021-05-10T18:18:00Z</dc:date>
    <item>
      <title>Using Curl &amp; Dropbox API to upload files to a DB request link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Curl-amp-Dropbox-API-to-upload-files-to-a-DB-request-link/m-p/518858#M25350</link>
      <description>&lt;P&gt;I am wanting to create a BASH script in Linux to use when I need to load media files to a Dropbox request link that a group of mine uses for collaboration. How would I do this with curl? The link is in the form of&amp;nbsp;&lt;A href="https://www.dropbox.com/request/[REDACTED]" target="_blank" rel="noopener"&gt;https://www.dropbox.com/request/[REDACTED]&lt;/A&gt;. The web interface requests a NAME and an EMAIL ADDRESS when I hit upload. Can I just parse that in with the API? Is this a feasible task to accomplish? I am usually in a terminal shell and I could save myself time by just running a script to upload the file without having to jump into a browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$&amp;gt; ./mydbupload.sh mycoolvideo.mp4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would then edit my script to pass the my argument (ie. mycoolvideo.mp4) into a curl command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 17:14:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Curl-amp-Dropbox-API-to-upload-files-to-a-DB-request-link/m-p/518858#M25350</guid>
      <dc:creator>Rockymtns99</dc:creator>
      <dc:date>2021-05-07T17:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using Curl &amp; Dropbox API to upload files to a DB request link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Curl-amp-Dropbox-API-to-upload-files-to-a-DB-request-link/m-p/518871#M25352</link>
      <description>&lt;P&gt;Dropbox unfortunately doesn't offer a way to programmatically upload to file requests like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 17:52:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Curl-amp-Dropbox-API-to-upload-files-to-a-DB-request-link/m-p/518871#M25352</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-05-07T17:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using Curl &amp; Dropbox API to upload files to a DB request link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Curl-amp-Dropbox-API-to-upload-files-to-a-DB-request-link/m-p/518878#M25353</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1439900"&gt;@Rockymtns99&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I am wanting to create a BASH script ... to load media files to a Dropbox request link ... How would I do this with curl? ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1439900"&gt;@Rockymtns99&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I don't think it's possible in such a way. If this was possible, that would be a throughput way for something like spam. &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;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1439900"&gt;@Rockymtns99&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... Can I just parse that in with the API? Is this a feasible task to accomplish? I am usually in a terminal shell and I could save myself time by just running a script to upload the file without having to jump into a browser. ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Good questions and good idea! &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, there isn't a bash SDK. You can create something without SDK by using direct calls to curl, actually. Following &lt;A title="Dropbox API v2" href="https://www.dropbox.com/developers/documentation/http/documentation" target="_blank" rel="noopener"&gt;API documentation&lt;/A&gt;, the simplest way is to create, by hand, a refresh token and save it in some configuration file. Next in your script you can read the refresh token, saved before, and using &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_blank" rel="noopener"&gt;/oauth2/token&lt;/A&gt; call receive access token. Using the access token you can call all other API calls. It expires relatively soon, stays valid more than enough. Using &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_blank" rel="noopener"&gt;/upload&lt;/A&gt; call smaller files could be uploaded directly. For bigger files (more than 150MB) you should gonna create upload session using &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start" target="_blank" rel="noopener"&gt;/upload_session/start&lt;/A&gt; call and following calls.&lt;/P&gt;&lt;P&gt;For more sophisticated script, you can create a pseudo server using netcat to perform OAuth flow in addition to curl usage. &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@42A7BB9FC7BA595B8C9F1F5D66A5EBF4/emoticons/1f44c.png" alt=":ok_hand:" title=":ok_hand:" /&gt; "bash" is powerful enough to parse the query containing code/token/etc.&lt;/P&gt;&lt;P&gt;Hope this gives idea.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 18:09:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Curl-amp-Dropbox-API-to-upload-files-to-a-DB-request-link/m-p/518878#M25353</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2021-05-07T18:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using Curl &amp; Dropbox API to upload files to a DB request link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Curl-amp-Dropbox-API-to-upload-files-to-a-DB-request-link/m-p/519321#M25363</link>
      <description>&lt;P&gt;Thanks. That makes sense. I was hoping that there would be an easy way to call a curl command from a script to do quick uploads to the request link but, it sounds like it isn't as simple as I thought.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 18:18:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Curl-amp-Dropbox-API-to-upload-files-to-a-DB-request-link/m-p/519321#M25363</guid>
      <dc:creator>Rockymtns99</dc:creator>
      <dc:date>2021-05-10T18:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using Curl &amp; Dropbox API to upload files to a DB request link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Curl-amp-Dropbox-API-to-upload-files-to-a-DB-request-link/m-p/585209#M27254</link>
      <description>&lt;P&gt;This would be very useful!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 00:10:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Using-Curl-amp-Dropbox-API-to-upload-files-to-a-DB-request-link/m-p/585209#M27254</guid>
      <dc:creator>TTimo</dc:creator>
      <dc:date>2022-03-22T00:10:37Z</dc:date>
    </item>
  </channel>
</rss>

