<?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: HTTP request to dropbox APIs in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-request-to-dropbox-APIs/m-p/169600#M6307</link>
    <description>&lt;P&gt;The app authorization process is handled via OAuth 2. The documentation for the OAuth 2 page and endpoint can be found here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There's a blog post here that shows how to implement OAuth 2:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.dropbox.com/developers/2013/07/using-oauth-2-0-with-the-core-api/" rel="nofollow noreferrer"&gt;https://blogs.dropbox.com/developers/2013/07/using-oauth-2-0-with-the-core-api/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There's also an OAuth guide here that may be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/reference/oauthguide" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/reference/oauthguide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And here's a simple example of uploading a file (from text) in JavaScript using jQuery:&lt;/P&gt;
&lt;PRE&gt; var data = new TextEncoder("utf-8").encode("Test");&lt;BR /&gt; $.ajax({&lt;BR /&gt; url: 'https://content.dropboxapi.com/2/files/upload',&lt;BR /&gt; type: 'post',&lt;BR /&gt; data: data,&lt;BR /&gt; processData: false,&lt;BR /&gt; contentType: 'application/octet-stream',&lt;BR /&gt; headers: {&lt;BR /&gt; "Authorization": "Bearer &amp;lt;ACCESS_TOKEN&amp;gt;",&lt;BR /&gt; "Dropbox-API-Arg": '{"path": "/test_upload.txt","mode": "add","autorename": true,"mute": false}'&lt;BR /&gt; },&lt;BR /&gt; success: function (data) {&lt;BR /&gt; console.log(data);&lt;BR /&gt; }&lt;BR /&gt; })&lt;BR /&gt;&lt;BR /&gt;&amp;lt;ACCESS_TOKEN&amp;gt; should be replaced with the OAuth 2 access token.&lt;/PRE&gt;
&lt;P&gt;And here's a simple example of getting the user's account information using jQuery:&lt;/P&gt;
&lt;PRE&gt; jQuery.ajax({&lt;BR /&gt; url: 'https://api.dropboxapi.com/2/users/get_current_account',&lt;BR /&gt; type: 'POST',&lt;BR /&gt; headers: {&lt;BR /&gt; "Authorization": "Bearer &amp;lt;ACCESS_TOKEN&amp;gt;"&lt;BR /&gt; },&lt;BR /&gt; success: function (data) {&lt;BR /&gt; console.log(data);&lt;BR /&gt; },&lt;BR /&gt; error: function (error) {&lt;BR /&gt; console.log(error);&lt;BR /&gt; }&lt;BR /&gt; })&lt;BR /&gt;&lt;BR /&gt;&amp;lt;ACCESS_TOKEN&amp;gt; should be replaced with the OAuth 2 access token.&lt;/PRE&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:54:57 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-06-15T23:54:57Z</dc:date>
    <item>
      <title>HTTP request to dropbox APIs</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-request-to-dropbox-APIs/m-p/169597#M6304</link>
      <description>&lt;P&gt;how do we make HTTP requests to dropbox APIs?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:32:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-request-to-dropbox-APIs/m-p/169597#M6304</guid>
      <dc:creator>Shwetank S.</dc:creator>
      <dc:date>2019-05-29T09:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP request to dropbox APIs</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-request-to-dropbox-APIs/m-p/169598#M6305</link>
      <description>&lt;P&gt;We&amp;nbsp;recommend using one of the official SDKs, if possible:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Those will handle the work of making the HTTPS calls for you.&lt;/P&gt;
&lt;P&gt;Otherwise, you can use your own HTTPS client (whatever that may be for for whatever platform you're using) to connect to the HTTPS endpoints directly:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/documentation/http/documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 01:32:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-request-to-dropbox-APIs/m-p/169598#M6305</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-06-14T01:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP request to dropbox APIs</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-request-to-dropbox-APIs/m-p/169599#M6306</link>
      <description>&lt;P&gt;I prefer to use HTTP endpoints for now.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any&amp;nbsp;code snippets which depicts below way of communicating with dropbox APIs via HTTP(javascript) route&lt;/P&gt;
&lt;P&gt;- Authorize and get access token&lt;/P&gt;
&lt;P&gt;- call dropbox APIs using access token&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:08:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-request-to-dropbox-APIs/m-p/169599#M6306</guid>
      <dc:creator>Shwetank S.</dc:creator>
      <dc:date>2016-06-15T20:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP request to dropbox APIs</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-request-to-dropbox-APIs/m-p/169600#M6307</link>
      <description>&lt;P&gt;The app authorization process is handled via OAuth 2. The documentation for the OAuth 2 page and endpoint can be found here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There's a blog post here that shows how to implement OAuth 2:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.dropbox.com/developers/2013/07/using-oauth-2-0-with-the-core-api/" rel="nofollow noreferrer"&gt;https://blogs.dropbox.com/developers/2013/07/using-oauth-2-0-with-the-core-api/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There's also an OAuth guide here that may be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/reference/oauthguide" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/reference/oauthguide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;And here's a simple example of uploading a file (from text) in JavaScript using jQuery:&lt;/P&gt;
&lt;PRE&gt; var data = new TextEncoder("utf-8").encode("Test");&lt;BR /&gt; $.ajax({&lt;BR /&gt; url: 'https://content.dropboxapi.com/2/files/upload',&lt;BR /&gt; type: 'post',&lt;BR /&gt; data: data,&lt;BR /&gt; processData: false,&lt;BR /&gt; contentType: 'application/octet-stream',&lt;BR /&gt; headers: {&lt;BR /&gt; "Authorization": "Bearer &amp;lt;ACCESS_TOKEN&amp;gt;",&lt;BR /&gt; "Dropbox-API-Arg": '{"path": "/test_upload.txt","mode": "add","autorename": true,"mute": false}'&lt;BR /&gt; },&lt;BR /&gt; success: function (data) {&lt;BR /&gt; console.log(data);&lt;BR /&gt; }&lt;BR /&gt; })&lt;BR /&gt;&lt;BR /&gt;&amp;lt;ACCESS_TOKEN&amp;gt; should be replaced with the OAuth 2 access token.&lt;/PRE&gt;
&lt;P&gt;And here's a simple example of getting the user's account information using jQuery:&lt;/P&gt;
&lt;PRE&gt; jQuery.ajax({&lt;BR /&gt; url: 'https://api.dropboxapi.com/2/users/get_current_account',&lt;BR /&gt; type: 'POST',&lt;BR /&gt; headers: {&lt;BR /&gt; "Authorization": "Bearer &amp;lt;ACCESS_TOKEN&amp;gt;"&lt;BR /&gt; },&lt;BR /&gt; success: function (data) {&lt;BR /&gt; console.log(data);&lt;BR /&gt; },&lt;BR /&gt; error: function (error) {&lt;BR /&gt; console.log(error);&lt;BR /&gt; }&lt;BR /&gt; })&lt;BR /&gt;&lt;BR /&gt;&amp;lt;ACCESS_TOKEN&amp;gt; should be replaced with the OAuth 2 access token.&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:54:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/HTTP-request-to-dropbox-APIs/m-p/169600#M6307</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-06-15T23:54:57Z</dc:date>
    </item>
  </channel>
</rss>

