<?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: Uploading files by ESP8266 HELP in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/273721#M16296</link>
    <description>&lt;P&gt;If you need to see what the actual HTTP requests would look like, I recommend running the curl examples included in the documentation for each relevant endpoint, e.g.,:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You can add the "--verbose" flag to the curl command to see the actual request.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2018 14:32:25 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-04-24T14:32:25Z</dc:date>
    <item>
      <title>Uploading files by ESP8266 HELP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/272703#M16198</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to access Dropbox to save my files in the cloud using an ESP8266, programming in Arduino!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone ever managed to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found an HTTP Developer API page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe with an HTTP POST I get access, save, delete ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I already do an HTTP POST for my site.&lt;/SPAN&gt; &lt;SPAN&gt;The template for my POST is this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;POST /drome/parser HTTP/1.1\r\nHost: "+String(host)+"\r\nContent-Type: multipart/form-data; boundary=xxBOUNDARYxx\r\nContent-Length: "258"\r\n\r\n--xxBOUNDARYxx\r\nContent-Type: text/plain\r\nContent-Disposition: form-data; name=\"IMEI\"\r\n\r\n"+macAddress()+"\r\n--xxBOUNDARYxx\r\nContent-Type: application/octet-stream\r\nContent-Disposition: form-data; name=\"file\"; filename=\"envio.txt\"\r\n\r\nTEST\r\n--xxBOUNDARYxx--\r\n\r\n&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;I could not understand the Dropbox API to do this ...&lt;BR /&gt;Can someone help me?&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:13:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/272703#M16198</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2019-05-29T09:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading files by ESP8266 HELP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/272833#M16208</link>
      <description>The Dropbox API does offer the ability to upload files programmatically. For example, you can use /2/files/upload:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The documentation there has an example of calling that endpoint via curl. We don't have any resources for Arduino/ESP8266 specifically, but you can translate that example/documentation for whatever HTTPS client you're using.&lt;BR /&gt;&lt;BR /&gt;Also, that's a link to the documentation for the HTTPS endpoint itself, but we recommend using one of the official SDKs if possible:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation" target="_blank"&gt;https://www.dropbox.com/developers/documentation&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Those have corresponding native methods for the HTTPS endpoints.</description>
      <pubDate>Tue, 17 Apr 2018 15:57:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/272833#M16208</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-17T15:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading files by ESP8266 HELP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/273401#M16268</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Hello can you help me?&lt;BR /&gt;it's just an example of how the POST format I'm sending.&lt;BR /&gt;then I do not adapt to the dropbox.&lt;BR /&gt;above I showed a POST that did not do my project.&lt;BR /&gt;Please help me !!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2018 13:52:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/273401#M16268</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2018-04-21T13:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading files by ESP8266 HELP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/273507#M16271</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I'm sending this way&lt;/SPAN&gt;&lt;/SPAN&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;POST /2/auth/token/from_oauth1 HTTP/1.1&lt;BR /&gt;Host: api.dropboxapi.com&lt;BR /&gt;Content-Type: application/x-www-form-urlencoded&lt;BR /&gt;Content-Length: xx&lt;BR /&gt;curl -X POST &lt;A href="https://api.dropboxapi.com/2/auth/token/from_oauth1" target="_blank"&gt;https://api.dropboxapi.com/2/auth/token/from_oauth1&lt;/A&gt; \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --header "Authorization: Basic &amp;lt;MY CODE&amp;gt;" \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --header "Content-Type: application/json" \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --data "{\"oauth1_token\": \"qievr8hamyg6ndck\",\"oauth1_token_secret\": \"qomoftv0472git7\"}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;but I get this&lt;/SPAN&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTTP/1.1 400 Bad Request&lt;BR /&gt;Server: nginx&lt;BR /&gt;Date: Mon, 23 Apr 2018 04:04:30 GMT&lt;BR /&gt;Content-Type: text/html&lt;BR /&gt;Content-Length: 264&lt;BR /&gt;Connection: close&lt;BR /&gt;X-Frame-Options: DENY&lt;BR /&gt;Content-Security-Policy: sandbox; frame-ancestors 'none'&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;Content-Disposition: attachment; filename='error'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;can you help me ???&lt;BR /&gt;I can not make progress.&lt;BR /&gt;&lt;SPAN&gt;thank you!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 04:06:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/273507#M16271</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2018-04-23T04:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading files by ESP8266 HELP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/273570#M16277</link>
      <description>From the sample you provided, I see that you're trying to call /2/auth/token/from_oauth1, but are just using the oauth1_token and oauth1_token_secret values from the documentation itself. This endpoint is only meant for use if you already have pre-existing OAuth 1 access tokens, which you would plug in there instead of the sample values from the documentation. If you are only starting development now, you would not have OAuth 1 access tokens and so should not be using this endpoint.&lt;BR /&gt;&lt;BR /&gt;If you don't have pre-existing OAuth 1 access tokens, you should send the user through the normal OAuth 2 app authorization flow. You can find information on how that works in the OAuth guide here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/reference/oauth-guide" target="_blank"&gt;https://www.dropbox.com/developers/reference/oauth-guide&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The documentation for the OAuth 2 app authorization flow can be found here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#authorization&lt;/A&gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 23 Apr 2018 16:11:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/273570#M16277</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-23T16:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading files by ESP8266 HELP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/273654#M16290</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Hello Greg!&lt;BR /&gt;Thanks for the answer!&lt;BR /&gt;I have already registered the application and have token, app key and app secret.&lt;BR /&gt;I already used it in the model I posted above. &lt;SPAN&gt;But nothing changes ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;To solve my problem, I would like your help.&lt;BR /&gt;Can you send me 2 complete POST examples (what will the server receive, all the characters) ??&lt;BR /&gt;- An example for authentication.&lt;BR /&gt;- Another example, to send a file or to list the existing files or folders.&lt;BR /&gt;&lt;BR /&gt;With these 2 examples I can modify and create a library for Arduino!&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I need the FULL information.&lt;/SPAN&gt; The whole structure of POST done. &lt;SPAN&gt;(what the server will receive)&lt;/SPAN&gt;&lt;BR /&gt;Because in Arduino we have to do everything at hand ... I need to know all the characters sent, understand?&lt;BR /&gt;&lt;BR /&gt;Kindly help me ... These 2 examples will help me a lot and other people too!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Sorry to ask you that. &lt;SPAN&gt;I hope you can help me.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 00:40:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/273654#M16290</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2018-04-24T00:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading files by ESP8266 HELP</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/273721#M16296</link>
      <description>&lt;P&gt;If you need to see what the actual HTTP requests would look like, I recommend running the curl examples included in the documentation for each relevant endpoint, e.g.,:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#oauth2-token&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You can add the "--verbose" flag to the curl command to see the actual request.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 14:32:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Uploading-files-by-ESP8266-HELP/m-p/273721#M16296</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-04-24T14:32:25Z</dc:date>
    </item>
  </channel>
</rss>

