<?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: API V2 oauth 1.0 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/210344#M10492</link>
    <description>&lt;P&gt;You can find information on how the OAuth app authorization flow works 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 specific endpoints you need to use 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;&lt;BR /&gt;You can use either the "token" or "code" flow, depending on what makes sense for your app. &lt;BR /&gt;&lt;BR /&gt;Note that &lt;A href="https://www.dropbox.com/oauth2/authorize" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize&lt;/A&gt; is a web page, not an API endpoint. Your app should direct users there in their browser, and not make any API calls to it directly. &lt;BR /&gt;&lt;BR /&gt;The &lt;A href="https://api.dropboxapi.com/oauth2/token" target="_blank"&gt;https://api.dropboxapi.com/oauth2/token&lt;/A&gt; URI is an API endpoint that you would use if you use the OAuth 2 "code" flow.&lt;BR /&gt;&lt;BR /&gt;If you run in to any issues implementing that, please let us know the steps to reproduce the issue, and share the relevant code and output so we can look into it.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2017 19:13:57 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-03-07T19:13:57Z</dc:date>
    <item>
      <title>API V2 oauth 1.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/209941#M10446</link>
      <description>&lt;P&gt;Dear all, is oauth 1.0&amp;nbsp; still use in the future?&amp;nbsp; That's means use API V2 and use oauth 1.0 through HTTP, TKS!&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 29 May 2019 09:25:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/209941#M10446</guid>
      <dc:creator>blink</dc:creator>
      <dc:date>2019-05-29T09:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 oauth 1.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/210069#M10459</link>
      <description>OAuth 1 is only available for use with API v1. API v2 only supports OAuth 2, not OAuth 1.&lt;BR /&gt;&lt;BR /&gt;OAuth 1 will continue to be available for API v1 for the lifespan of API v1 itself. API v1 is deprecated, and you can find the retirement timeline here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/" target="_blank"&gt;https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/&lt;/A&gt;</description>
      <pubDate>Mon, 06 Mar 2017 18:39:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/210069#M10459</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-06T18:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 oauth 1.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/210179#M10481</link>
      <description>&lt;P&gt;Thanks for your answer.&amp;nbsp; and I have another question about API V2 oauth 2.0.&lt;/P&gt;&lt;P&gt;I use c++ code to upload files, but how can I get access token by http request with API V2 , eg:&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;https://www.dropbox.com&lt;/STRONG&gt;/oauth2/authorize&lt;/PRE&gt;&lt;PRE&gt;https://api.dropboxapi.com/oauth2/token&lt;/PRE&gt;&lt;P&gt;c++ code :&lt;/P&gt;&lt;PRE&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;curl/curl.h&amp;gt;

int main (int argc, char *argv[])
{
      CURL *curl;
      CURLcode res;

      /* In windows, this will init the winsock stuff */
      curl_global_init(CURL_GLOBAL_ALL);

      /* get a curl handle */
      curl = curl_easy_init();
      if(curl) {

            printf ("Running curl test.\n");

            struct curl_slist *headers=NULL; /* init to NULL is important */
            headers = curl_slist_append(headers, "Authorization: Bearer &amp;lt;ACCESS_TOKEN&amp;gt;");
            headers = curl_slist_append(headers, "Content-Type: application/octet-stream");
            headers = curl_slist_append(headers, "Dropbox-API-Arg: {\"path\":\"/test_c++_upload_test.txt\"}");
            curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);

            curl_easy_setopt(curl, CURLOPT_URL, "https://content.dropboxapi.com/2/files/upload");
            curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "test data for upload");

            /* Perform the request, res will get the return code */
            res = curl_easy_perform(curl);
            /* Check for errors */
            if(res != CURLE_OK)
                  fprintf(stderr, "curl_easy_perform() failed: %s\n",
                    curl_easy_strerror(res));

            /* always cleanup */
              curl_easy_cleanup(curl);

              printf ("\nFinished curl test.\n");

      }
      curl_global_cleanup();

      printf ("Done!\n");
      return 0;

}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 03:05:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/210179#M10481</guid>
      <dc:creator>blink</dc:creator>
      <dc:date>2017-03-07T03:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 oauth 1.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/210344#M10492</link>
      <description>&lt;P&gt;You can find information on how the OAuth app authorization flow works 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 specific endpoints you need to use 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;&lt;BR /&gt;You can use either the "token" or "code" flow, depending on what makes sense for your app. &lt;BR /&gt;&lt;BR /&gt;Note that &lt;A href="https://www.dropbox.com/oauth2/authorize" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize&lt;/A&gt; is a web page, not an API endpoint. Your app should direct users there in their browser, and not make any API calls to it directly. &lt;BR /&gt;&lt;BR /&gt;The &lt;A href="https://api.dropboxapi.com/oauth2/token" target="_blank"&gt;https://api.dropboxapi.com/oauth2/token&lt;/A&gt; URI is an API endpoint that you would use if you use the OAuth 2 "code" flow.&lt;BR /&gt;&lt;BR /&gt;If you run in to any issues implementing that, please let us know the steps to reproduce the issue, and share the relevant code and output so we can look into it.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 19:13:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/210344#M10492</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-07T19:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 oauth 1.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/210420#M10495</link>
      <description>&lt;P&gt;Many thanks your answer!&amp;nbsp; and I've read the the URL doc, but I have a puzzle when I use browse to get token. &lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;A href="https://www.dropbox.com/oauth2/authorize?client_id=" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize?client_id=&lt;/A&gt;&lt;CODE&gt;0lksd9ebhsil1qx&lt;/CODE&gt;?response_type=(when can I get the string?).&amp;nbsp; the browse show 400 error with message: &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; More details for developers&lt;/P&gt;
&lt;DIV class="orange-hotbox"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;CODE&gt;Invalid client_id: "0lksd9ebhsil1qx?response_type=".&lt;/CODE&gt; &lt;/DIV&gt;
&lt;DIV class="orange-hotbox"&gt;Please tell me the url &amp;nbsp; (&lt;A href="https://www.dropbox.com/oauth2/authorize)&amp;nbsp;" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize)&amp;nbsp;&lt;/A&gt; &lt;SPAN&gt;Parameters&lt;/SPAN&gt; , thank you!&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Mar 2017 03:17:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/210420#M10495</guid>
      <dc:creator>blink</dc:creator>
      <dc:date>2017-03-08T03:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 oauth 1.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/210556#M10507</link>
      <description>When constructing a URL, the location should be separated from the parameters by one '?', and subsequent parameters should be separated by '&amp;amp;'.&lt;BR /&gt;&lt;BR /&gt;The 'response_type' should be either 'code' or 'token', depending on which flow you want to use. You can find more information on these in the documentation 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;&lt;BR /&gt;So, for example, your /authorize URL might look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/oauth2/authorize?client_id=0lksd9ebhsil1qx&amp;amp;response_type=code" target="_blank"&gt;https://www.dropbox.com/oauth2/authorize?client_id=0lksd9ebhsil1qx&amp;amp;response_type=code&lt;/A&gt;</description>
      <pubDate>Wed, 08 Mar 2017 17:53:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/210556#M10507</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-08T17:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 oauth 1.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/210904#M10561</link>
      <description>&lt;P&gt;Thank you for your answer!&amp;nbsp; and I can get authorization code by browser.&amp;nbsp; then&amp;nbsp; I use &lt;BR /&gt;&lt;A href="https://api.dropboxapi.com/oauth2/token&amp;nbsp;" target="_blank"&gt;https://api.dropboxapi.com/oauth2/token&amp;nbsp;&lt;/A&gt; API&amp;nbsp; to get correct result .&amp;nbsp; but that's not my needed. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;and I don't understand what's the different&amp;nbsp; between &lt;A href="https://api.dropboxapi.com/oauth2/token&amp;nbsp;" target="_blank"&gt;https://api.dropboxapi.com/oauth2/token&amp;nbsp;&lt;/A&gt; result "access_token" and&amp;nbsp; &lt;SPAN&gt;&lt;A href="https://www.dropbox.com/developers/apps" target="_blank"&gt;App Console (&lt;STRONG&gt;Generated access token&lt;/STRONG&gt;) . &lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;in fact, I want to the user input App key and App secret . then I can use API V2&amp;nbsp; to get access token ,&amp;nbsp; and I can upload files.&amp;nbsp; if let's user input access token, it too long and&amp;nbsp; &lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;inconvenient . so please help me. thanks!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 01:57:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/210904#M10561</guid>
      <dc:creator>blink</dc:creator>
      <dc:date>2017-03-10T01:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: API V2 oauth 1.0</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/211001#M10576</link>
      <description>The tokens retrieved by /oauth2/token and the App Console's "Generate" button are the same kind of access tokens. The only thing to note is that the "Generate" button can only be used to get an access token for the single account that owns the app, whereas the OAuth flow can be used to get an access token for any account.&lt;BR /&gt;&lt;BR /&gt;When you develop an API app, you should not require the user to enter their own app key and secret. You, as the developer, only need to register the API app once. You should then use the app key and secret in your app. The app key and secret identify the app. The app can then send the user through the OAuth flow to get an access token for the user.&lt;BR /&gt;&lt;BR /&gt;I recommend reading the OAuth guide for an overview of how this works:&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;</description>
      <pubDate>Fri, 10 Mar 2017 18:09:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-V2-oauth-1-0/m-p/211001#M10576</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-10T18:09:32Z</dc:date>
    </item>
  </channel>
</rss>

