<?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 API v2: Dropbox integration to website in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-Dropbox-integration-to-website/m-p/256294#M14852</link>
    <description>&lt;P&gt;I want to to sync user dropbox account with our website so that user can directly upload their documents from our site.I am using Dotnet and had done following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;string appkey = ConfigurationManager.AppSettings.Get("Appkey").ToString();&lt;BR /&gt;string appSecret = ConfigurationManager.AppSettings.Get("AppSecret").ToString();&lt;BR /&gt;string returnUrl = ConfigurationManager.AppSettings.Get("ReturnUrl").ToString();&lt;/P&gt;&lt;P&gt;var client = new DropboxClient(appkey, appSecret);&lt;BR /&gt;var a = client.AccessToken;&lt;BR /&gt;client.ReturnUrl = returnUrl;&lt;BR /&gt;client.RedirectToAuthorization();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It correctly redirect me to dropbox login form and after allowing permission it send back to redirect URl with parameters state and code in query string ,but when I try to use code as access token while uploading file it give error of invalid token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I doing something wrong,is code that is return is not the access token,if not then how can i get the access token from it.Please remember that i am using asp.net c#&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:16:43 GMT</pubDate>
    <dc:creator>JaideepSingh</dc:creator>
    <dc:date>2019-05-29T09:16:43Z</dc:date>
    <item>
      <title>API v2: Dropbox integration to website</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-Dropbox-integration-to-website/m-p/256294#M14852</link>
      <description>&lt;P&gt;I want to to sync user dropbox account with our website so that user can directly upload their documents from our site.I am using Dotnet and had done following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;string appkey = ConfigurationManager.AppSettings.Get("Appkey").ToString();&lt;BR /&gt;string appSecret = ConfigurationManager.AppSettings.Get("AppSecret").ToString();&lt;BR /&gt;string returnUrl = ConfigurationManager.AppSettings.Get("ReturnUrl").ToString();&lt;/P&gt;&lt;P&gt;var client = new DropboxClient(appkey, appSecret);&lt;BR /&gt;var a = client.AccessToken;&lt;BR /&gt;client.ReturnUrl = returnUrl;&lt;BR /&gt;client.RedirectToAuthorization();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It correctly redirect me to dropbox login form and after allowing permission it send back to redirect URl with parameters state and code in query string ,but when I try to use code as access token while uploading file it give error of invalid token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I doing something wrong,is code that is return is not the access token,if not then how can i get the access token from it.Please remember that i am using asp.net c#&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:16:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-Dropbox-integration-to-website/m-p/256294#M14852</guid>
      <dc:creator>JaideepSingh</dc:creator>
      <dc:date>2019-05-29T09:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: API v2: Dropbox integration to website</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-Dropbox-integration-to-website/m-p/256365#M14855</link>
      <description>If you're using the OAuth 2 "code" flow, the code returned on the redirect URI is an "authorization code", not an "access token". You'll need to exchange the authorization code for an access token. You can find more information on that in the documentation:&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;The OAuth guide may also be helpful:&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;By the way, based on your code it looks like you may not be using the official Dropbox API v2 .NET SDK. We highly recommend using it if possible:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-dotnet&lt;/A&gt;</description>
      <pubDate>Tue, 12 Dec 2017 16:04:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/API-v2-Dropbox-integration-to-website/m-p/256365#M14855</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-12T16:04:44Z</dc:date>
    </item>
  </channel>
</rss>

