<?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: Access and file upload using command line (RAW socket) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275016#M16407</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/640338"&gt;@chirstius&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Nice, i got it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I have 2 options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Use Token from my developer account&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Use OAuth2 and store Tokens on my device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to learn how to do both ways.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because I'll need the 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a secure location to store the tokens to use OAuth 2.&lt;/SPAN&gt;&lt;BR /&gt;But I do not know how to authenticate the uduário through OAuth 2 through raw socket.&lt;BR /&gt;&lt;BR /&gt;I need to know what to send to authenticate the user using the 2 options (Token and OAuth 2)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me?&lt;/SPAN&gt; I do not know what commands I have to send for this, I believe a GET or POST. &lt;SPAN&gt;But I do not know the structure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I need help.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 04 May 2018 00:29:04 GMT</pubDate>
    <dc:creator>lucasromeiro</dc:creator>
    <dc:date>2018-05-04T00:29:04Z</dc:date>
    <item>
      <title>Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/274951#M16393</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Hello everyone.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I am trying to login and upar a file in the dropbox using command line, (RAW socket).&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I am having difficulty understanding how to do it, because I always get error from my commands.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I am using the reference:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;What do I do:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I connect to the dropbox at the following address:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Server IP: api.dropboxapi.com&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;PORT: 443&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I send the commands that have in the above address, to log or send file, but only returns me error, for example:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Sending:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&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;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;--header "Authorization: Basic ZzB4a3BtZnUwMjVwbjhmOmtuYWdoMzl3YTc1cxxxxxxxxt" \ "&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;--header "Content-Type: application / json" \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;-data "{\" oauth1_token \ ": \" g0xkpmfu025xxxx \ ", \" oauth1_token_secret \ ": \" knagh39wa75xxxx \ "}"&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I get:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;HTTP / 1.1 400 Bad Request&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Server: nginx&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Date: Thu, 03 May 2018 15:54:37 GMT&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Content-Type: text / html&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Content-Length:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Connection: close&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;ETag: "5a7b9900-643a"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;X-Dropbox-Request-Id: bd49b7d1aafce148d39e89d17e580d7f&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;! DOCTYPE html&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Any command I send, I always get it! &lt;/SPAN&gt;&lt;SPAN&gt;I do not understand what I'm doing wrong ....&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Can someone help me?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Is there an example command for me to send to test the connection?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Captura de Tela 2018-05-03 às 12.png" style="width: 666px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/3091i68ADDE0234E85745/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de Tela 2018-05-03 às 12.png" alt="Captura de Tela 2018-05-03 às 12.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:13:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/274951#M16393</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2019-05-29T09:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/274953#M16394</link>
      <description>From the sample you provided, I see that you're trying to call /2/auth/token/from_oauth1. This endpoint is only meant for use if you already have pre-existing OAuth 1 access tokens (e.g., retrieved in the past for API v1), which you would plug in there. 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;</description>
      <pubDate>Thu, 03 May 2018 16:37:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/274953#M16394</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-05-03T16:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/274962#M16395</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Cool! I understand that I need to use OAuth2, correct?&lt;BR /&gt;I looked at this link that you sent me, but I did not understand how I send the authorization command, I did not find an example.&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;&lt;BR /&gt;can you help me?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 17:36:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/274962#M16395</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2018-05-03T17:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/274968#M16397</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662387"&gt;@lucasromeiro&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned in the link you referenced, to begin the OAuth 2 flow you would just make a simple GET request, that should be made via the system browser, to:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;https://www.dropbox.com/oauth2/authorize&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And supply the parameters as listed, at a bare minimum your request URL would look like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;https://www.dropbox.com/oauth2/authorize?response_type=code&amp;amp;client_id=abcdefg123&lt;/PRE&gt;
&lt;P&gt;response_type can either be 'code' or 'token' and client_id is your app key from the developer console (as listed in the description of the /oauth2/authorize documentation).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, if you use the code flow, the user will be presented with a page asking them to login, if they are not already, and then to authorize your application. If they allow it they will be presented a code they can enter back into your app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your app can then use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://api.dropboxapi.com/oauth2/token&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to convert that code into an actual API token you can use to make calls against the Dropbox API. Pay attention to the authorization requirements of this endpoint (again documentation is covered in the link you referenced). This is a POST request vs. a GET for the previous step so adjust and encode parameters accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps get you past this,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 18:29:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/274968#M16397</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-05-03T18:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/274998#M16403</link>
      <description>&lt;P&gt;Hello &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/640338"&gt;@chirstius&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Thanks for helping me!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you understood what I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm still saying.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm going through parts ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First I tried to make the GET using the pattern I passed above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it still does not work ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I use the terminal / command line to send the GET, I have no response ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look below the commands I sent:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server: &lt;A href="http://www.dropbox.com" target="_blank"&gt;www.dropbox.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Door: 443 or 80&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;1:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;GET /oauth2/authorize?response_type=code&amp;amp;client_id=g0xkpmfu025XXXX/ HTTP/1.1&lt;BR /&gt;Host: dropbox.com&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;2:&lt;/P&gt;
&lt;P&gt;GET /oauth2/authorize?response_type=code&amp;amp;client_id=g0xkpmfu025XXXX/ HTTP/1.1&lt;BR /&gt;Host: dropbox.com&lt;BR /&gt;User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)&lt;BR /&gt;Accept: application/octet-stream&lt;BR /&gt;Accept-Language: en-us,en;q=0.5&lt;BR /&gt;Accept-Encoding: gzip,deflate&lt;BR /&gt;Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7&lt;BR /&gt;Keep-Alive: 300&lt;BR /&gt;Connection: keep-alive&lt;BR /&gt;Pragma: no-cache&lt;BR /&gt;Cache-Control: no-cache&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;SPAN&gt;Test these 2 formats, in both I got no other server response, neither error, nor success ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What could it be?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I did not succeed in anything, because I could not do it ...&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help !!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 20:27:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/274998#M16403</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2018-05-03T20:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275004#M16404</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662387"&gt;@lucasromeiro&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That GET request needs to be made from a browser. You can script launching the system browser on your device and pointing it to the generated URL which will make a simple GET request by default. I should have been more clear on that in my previous response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried just pasting your URL into a browser to see if it's working at all? I'd start there to make sure it's well-formed and that Dropbox responds with a proper authentication window. Then you can look at how to script launching the browser to open that URL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 21:39:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275004#M16404</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-05-03T21:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275009#M16405</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/640338"&gt;@chirstius&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello! It worked!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I pasted the URL into the browser and it returned an authentication window!&lt;/P&gt;
&lt;P&gt;Thank you for explaining better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in my case, I need to do everything by terminal / command line.&lt;/P&gt;
&lt;P&gt;Because my solution will be all in command line (raw socket). how can I do this command line authentication?&lt;/P&gt;
&lt;P&gt;it's possible?&lt;/P&gt;
&lt;P&gt;Every time I use the system, will I need to do this or is it only once?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot for the help!&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="lia-inline-image-display-wrapper lia-image-align-left" image-alt="WhatsApp Image 2018-05-03 at 19.58.28.jpeg" style="width: 750px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/3093iDC41159E76C48F2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="WhatsApp Image 2018-05-03 at 19.58.28.jpeg" alt="WhatsApp Image 2018-05-03 at 19.58.28.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 23:04:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275009#M16405</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2018-05-03T23:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275012#M16406</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662387"&gt;@lucasromeiro&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have the token it's good until it is revoked. If you are only planning on doing this for a single user/account (you) you can probably use a generated token from your developer console (which is just a shortcut to link the app to your Dropbox directly) and avoid the OAuth 2 flow entirely. If you need this to run against multiple accounts you'll want to find a workable solution for the OAuth 2 flow and make sure you have a secure mechanism in place for storing API tokens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 23:36:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275012#M16406</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-05-03T23:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275016#M16407</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/640338"&gt;@chirstius&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Nice, i got it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I have 2 options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Use Token from my developer account&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Use OAuth2 and store Tokens on my device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to learn how to do both ways.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because I'll need the 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a secure location to store the tokens to use OAuth 2.&lt;/SPAN&gt;&lt;BR /&gt;But I do not know how to authenticate the uduário through OAuth 2 through raw socket.&lt;BR /&gt;&lt;BR /&gt;I need to know what to send to authenticate the user using the 2 options (Token and OAuth 2)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help me?&lt;/SPAN&gt; I do not know what commands I have to send for this, I believe a GET or POST. &lt;SPAN&gt;But I do not know the structure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I need help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 00:29:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275016#M16407</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2018-05-04T00:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275105#M16422</link>
      <description>&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/640338"&gt;@chirstius&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;if I can do everything from the command line / terminal, I can put it in my project! I want to make a repository for arduino that makes sending and manipulating files in the dropbox. So I need examples and understand how to log in and upload a file. so I adapt the upload command to the other manipulation functions ... that is why the user can not access the browser. I am learning from your help. Now I only need to learn how to log in the 2 ways and upload a file. as I said above. can you help me? Sorry to bother you guys. I want to make this library to help other people who want to use Dropbox in their projects but have no Arduino API.</description>
      <pubDate>Fri, 04 May 2018 19:06:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275105#M16422</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2018-05-04T19:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275120#M16424</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662387"&gt;@lucasromeiro&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure there's an easy way around authenticating through the browser, that's really how the OAuth2 workflow needs to run for us. What you might be able to do is generate the authorization link, write it to the console/terminal and ask your user to copy it into a browser on another device. Then prompt for the code that comes back. They can enter the code into the terminal, and you can complete authorization from there and store their token. Since this is a one-time action it might be an acceptable workaround.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to your other question(s) around uploading, there is the singular /upload endpoint for files of 150MB or smaller:&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And there are chunked session endpoints for files larger than 150MB:&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-append_v2" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-append_v2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and also:&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch-check" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish_batch-check&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are committing a large number of concurrent uploads.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The singular upload endpoint example in the documentation is self-contained. If you are&amp;nbsp;using curl it should work as-is to upload smaller files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For chunked uploads, you would need to determine what mechanism is available to you to chunk the files and provide that data to the endpoints (/start and /append_v2). That mechanism is a bit outside the scope of Dropbox API support though and is highly dependant on the platform and libraries available to you which I can't help with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do hope this gets you a bit closer to a solution,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 20:27:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275120#M16424</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-05-04T20:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275129#M16425</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/640338"&gt;@chirstius&lt;/a&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Cool, I get it.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I liked your idea of ​​generating a link and the user copy it in the browser and enter the code in the program!&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;But I have some questions about that.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I think you can help me in them:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Earlier you told me that I have 2 options:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- Use My Account Token&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;- Use OAuth2 and store Tokens on my device.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Right?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;How do I use the Token of my application to authenticate? &lt;/SPAN&gt;&lt;SPAN&gt;Do I get a get in some specific format and receive some confirmation?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;In the second case, I would use OAuth2 to store the tokens, but for that I would need the link for the user to paste into the browser as you suggested in the previous message. &lt;/SPAN&gt;&lt;SPAN&gt;right? &lt;/SPAN&gt;&lt;SPAN&gt;But, how can I generate a link if I do not have the user's key (client_ID) app?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;As for uploading files, my system will always work with small files, it will never exceed 150Mb and I will always transfer one file at a time!&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I think I'll use this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&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;&lt;/SPAN&gt;&lt;SPAN&gt;But I have not yet arrived in this part, first I need to be able to authenticate before I can upload ...&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;As I said earlier, I want to make a library for arduino. &lt;/SPAN&gt;&lt;SPAN&gt;This will make things easier for other people. &lt;/SPAN&gt;&lt;SPAN&gt;I'll also use it for my masters degree.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;You have helped me a lot and I want to put your name in thanks, can I post?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Thanks, I think we can do this! &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@AEF569BFDD1DD3EB9180949D237CD92A/images/emoticons/1f600.png" alt=":grinning:" title=":grinning:" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 22:20:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275129#M16425</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2018-05-04T22:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275217#M16434</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/640338"&gt;@chirstius&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I made some progress.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I learned that through a request the dropbox already returns the token and other information !!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/oauth2/authorize?response_type=token&amp;amp;client_id=g0xkpmfuXXXXX&amp;amp;redirect_uri=https://localhost" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize?response_type=token&amp;amp;client_id=g0xkpmfuXXXXX&amp;amp;redirect_uri=https://localhost&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Returns:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;https: // localhost / # access_token = NI7PL_K93wcAAAAAAAAcseCfBxabh2Pb1Zw-5IjC0Vd1lDEKKr1cWyIXXXXXXX &amp;amp; token_type = bearer &amp;amp; uid = 5043908 &amp;amp; account_id = dbid% 3AAAB-FHGsciRVJdVo4D4apeASBLPFXXXXXX&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Informing only the client_id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read in the documentation that with this information I can already access my dropbox.&lt;/SPAN&gt; &lt;SPAN&gt;But in the command line whenever I make a request nothing returns me ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for example, I tried to make this request for user information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;curl -X POST "&lt;A href="https://api.dropboxapi.com/2/users/get_current_account" target="_blank"&gt;https://api.dropboxapi.com/2/users/get_current_account&lt;/A&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;--header "Authorization: Bearer NI7PL_K93wcAAAAAAAAcseCfBxabh2Pb1Zw-5IjC0Vd1lDEKKr1cWyIjOXXXXX"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But nothing returns ... I do not understand why ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I connected to:&lt;BR /&gt;&lt;SPAN&gt;server: api.dropboxapi.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;port: 443&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 May 2018 22:10:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275217#M16434</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2018-05-05T22:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275373#M16442</link>
      <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/50185625/upload-file-to-dropbox-by-terminal-command-line#50185625" target="_blank"&gt;https://stackoverflow.com/questions/50185625/upload-file-to-dropbox-by-terminal-command-line#50185625&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662387"&gt;@lucasromeiro&lt;/a&gt;&amp;nbsp;I see that you also posted on six other old/unrelated threads about this. We're happy to have you on the forum to engage with us an other developers, but please refrain from spamming duplicate comments like this. I've removed your other comments on those threads, and we'll continue to help you here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I don't see anything obviously wrong with your latest&amp;nbsp;get_current_account code. I&amp;nbsp;recommend adding the --verbose flag to curl so you can get more output.&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 16:18:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275373#M16442</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-05-07T16:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275382#M16443</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662387"&gt;@lucasromeiro&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "token from developer account" method is just using the token you can generate for yourself from the developer console.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to:&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/apps" target="_blank"&gt;https://www.dropbox.com/developers/apps&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Login, if required, select your app. Scroll to the OAuth 2 section and under 'Generated Access Token', click generate:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="generate.JPG" style="width: 261px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/3116i5E8016B8B9027D69/image-size/large?v=v2&amp;amp;px=999" role="button" title="generate.JPG" alt="generate.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This will link your app to your account and give you back an API access token, you can use that token to test your curl commands for the API endpoints. This method of authentication is there to make it easier for you to test against your own account quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To enable other users to add your app to their Dropbox, you need to take them through the OAuth flow we discussed, and you tested earlier in this conversation. Where you would have them paste the authorization URL string into a browser and then enter the code generated back into the console.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You use that code to make a call to&amp;nbsp;&lt;A href="https://api.dropboxapi.com/oauth2/token" target="_blank"&gt;https://api.dropboxapi.com/oauth2/token&lt;/A&gt; which is documented under the 'Authorization' section of the HTTP endpoints documentation found here:&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A sample curl POST to this endpoint might look like this:&lt;/P&gt;
&lt;PRE class="last literal-block documentation__curl-example"&gt;curl -X POST https://api.dropboxapi.com/oauth2/token \
    --data "code=&amp;lt;code from user&amp;gt;&amp;amp;grant_type=authorization_code&amp;amp;client_id=&amp;lt;your app key&amp;gt;&amp;amp;client_secret=&amp;lt;your app secret&amp;gt;"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should return a valid API access token you can use to access that users account.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have that token and you want to upload content, refer to:&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;Since you said the files will be small (&amp;lt;150MB) that endpoint should be all you need, there is a curl example right in the documentation that you can edit to fit your needs (focus on the Dropbox-API-Arg header information)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All other file operations have similar curl-based examples in the documentation which should point you in the right direction once you have your access tokens sorted out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this gets you moving towards a working solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 17:32:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275382#M16443</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-05-07T17:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275545#M16468</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/640338"&gt;@chirstius&lt;/a&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Cool! &lt;/SPAN&gt;&lt;SPAN&gt;So I'm on the right track!&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I have already done this and I have my token.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I understood now that this was to facilitate.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;What I do not understand is that I put my token in the commands and send ... anyway they do not work!&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Look:&lt;/SPAN&gt;&lt;/SPAN&gt;&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;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Captura de Tela 2018-05-08 às 18.20.01.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/3124iB4BE127A35401819/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Captura de Tela 2018-05-08 às 18.20.01.png" alt="Captura de Tela 2018-05-08 às 18.20.01.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&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;&amp;nbsp;&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;&amp;nbsp;&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;&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;&lt;SPAN&gt;What I do not understand !!&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;The commands are not working, none worked so far ...&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I already tried with my token that I took as you described above and replaced in the command and also I was already in the documentation and I clicked to him to fill alone the token in the command. &lt;/SPAN&gt;&lt;SPAN&gt;It gets filled, I send the command, but it also does not work.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I think there is something wrong with the commands, maybe something is missing that is not in the documentation ...&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;For example, I tried this command that is simple and only returns space, but does not work:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&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;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Captura de Tela 2018-05-08 às 18.20.42.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/3125i73149A2284D670EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Captura de Tela 2018-05-08 às 18.20.42.png" alt="Captura de Tela 2018-05-08 às 18.20.42.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&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;&amp;nbsp;&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;&amp;nbsp;&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;&amp;nbsp;&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;PRE&gt;curl -X POST https://api.dropboxapi.com/2/users/get_space_usage \
    --header "Authorization: Bearer NI7PL_K93wcAAAAAAAAcu3AuVqxJiD6CjL0njHjUsM3EwczSjjeKJIny-lxxxxxxx"&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;The command that sent me above I could not test, because I did not understand how to fill in the "code = &amp;lt;code from user&amp;gt;". &lt;/SPAN&gt;&lt;SPAN&gt;I tried to put the tokens on but they did not work.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I looked at the documentation and the link you sent me to upload ... but I can not send any commands yet to be able to explore other things ...&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Any command I send, always returns the same error:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Captura de Tela 2018-05-08 às 18.28.09.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/3126iEC93ED2281D8D64B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Captura de Tela 2018-05-08 às 18.28.09.png" alt="Captura de Tela 2018-05-08 às 18.28.09.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&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;&amp;nbsp;&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;&amp;nbsp;&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;&amp;nbsp;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I also tried to send the commands through this site.&lt;/SPAN&gt; Did not work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;A href="https://onlinecurl.com/" target="_blank"&gt;https://onlinecurl.com/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I suspect something is missing from the command or is incomplete in the documentation. &lt;/SPAN&gt;&lt;SPAN&gt;Friends also failed to send via socket ...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;I think I'm missing something simple.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 11:47:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275545#M16468</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2018-05-09T11:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275621#M16471</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Olá!!&lt;BR /&gt;Eu enviei os comentarios em topicos que eram relacionados. Percebi que algumas pessoas estavam com alguma semelhanca com minha duvida. Pedi ajuda para elas... Não sabia que isso era errado. Me desculpe.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pois e, o comando está certo! Eu não entendo porque em lugar nenhum consigo fazer ele funcionar, ja tentei usar varios programas, ja tentei sites etc... Mas não funciona...&lt;BR /&gt;Olha a resposta acima, eu explico mais.&lt;BR /&gt;Será que estou tentando conectar no endereco errado? algum argunto errado ou faltando??&lt;BR /&gt;Sobre o --verbose. como posso inserir?&lt;BR /&gt;Todos os codigos que testo retornam o mesmo erro...&lt;BR /&gt;Tenta por eles em: &lt;A href="https://onlinecurl.com/" target="_blank"&gt;https://onlinecurl.com/&lt;/A&gt;&lt;BR /&gt;Ou tenta enviar via socket...&lt;BR /&gt;&lt;BR /&gt;Sempre recebo algo como:&lt;BR /&gt;&lt;BR /&gt;HTTP/1.1 400 Bad Request&lt;BR /&gt;Server: nginx&lt;BR /&gt;Date: Tue, 08 May 2018 21:27:40 GMT&lt;BR /&gt;Content-Type: text/html&lt;BR /&gt;Content-Length: 25658&lt;BR /&gt;Connection: close&lt;BR /&gt;ETag: "5a7b9900-643a"&lt;BR /&gt;X-Dropbox-Request-Id: 71492938f986f1cc2fdcab1000320cc8&lt;BR /&gt;&lt;BR /&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Dropbox - 4xx&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;link href="&lt;A href="https://cfl.dropboxstatic.com/static/css/error.css" target="_blank"&gt;https://cfl.dropboxstatic.com/static/css/error.css&lt;/A&gt;" rel="stylesheet" type="text/css"/&amp;gt;&lt;BR /&gt;&amp;lt;link rel="shortcut icon" href="&lt;A href="https://cfl.dropboxstatic.com/static/images/favicon.ico&amp;quot;/" target="_blank"&gt;https://cfl.dropboxstatic.com/static/images/favicon.ico"/&lt;/A&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 14:42:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275621#M16471</guid>
      <dc:creator>lucasromeiro</dc:creator>
      <dc:date>2018-05-09T14:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Access and file upload using command line (RAW socket)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275685#M16485</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/662387"&gt;@lucasromeiro&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are sending this over a raw socket then the curl commands won't work directly, they will show you what you need to send, but if you're truly at the level of raw sockets you need to implement the HTTP protocol yourself directly. Sending the literal curl command text down the socket to the Dropbox API server will not work. Explaining how to implement HTTP over a socket is outside the scope of support we can provide on this forum so I&amp;nbsp;will not be able to help you there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you can find a simple/lightweight HTTP library for arduino&amp;nbsp;that you can install, or that is present by default, to make this easier. But if not, I do know there are several samples available by searching for "arduino&amp;nbsp;http&amp;nbsp;post"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Chuck&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 19:44:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Access-and-file-upload-using-command-line-RAW-socket/m-p/275685#M16485</guid>
      <dc:creator>chirstius</dc:creator>
      <dc:date>2018-05-09T19:44:02Z</dc:date>
    </item>
  </channel>
</rss>

