<?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: Need Clarification on the redirect uri round-trip behviour (Desktop .Net) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-Clarification-on-the-redirect-uri-round-trip-behviour/m-p/304136#M18367</link>
    <description>&lt;P&gt;&lt;A href="https://blogs.dropbox.com/developers/2014/04/dropbox-authorization-in-a-windows-forms-app/" target="_blank"&gt;That blog post&lt;/A&gt; is relatively old, and utilizes a mechanism we no longer support, per the note at the top.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To answer your specific questions though, note that&amp;nbsp;&lt;A href="https://www.dropbox.com/oauth2/redirect_receiver" target="_blank"&gt;https://www.dropbox.com/oauth2/redirect_receiver&lt;/A&gt; does (without the "/1") does not appear in that post, and does not point to a valid page. Only&amp;nbsp;&lt;A href="https://www.dropbox.com/1/oauth2/redirect_receiver" target="_blank"&gt;https://www.dropbox.com/1/oauth2/redirect_receiver&lt;/A&gt; (with the&amp;nbsp; "/1") is valid. Further, while we supply that for your convenience, you do not need to use it. You can use your own redirect URI if desired.&lt;/P&gt;
&lt;P&gt;Also,&amp;nbsp;&lt;A href="https://www.dropbox.com/1/account/info" target="_blank"&gt;https://www.dropbox.com/1/account/info&lt;/A&gt; is part of API v1,&amp;nbsp;which has since been retired and no longer works.&lt;/P&gt;
&lt;P&gt;Instead, to use the current Dropbox API from .NET, you should use &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" target="_blank"&gt;the official&amp;nbsp;Dropbox API v2 .NET SDK&lt;/A&gt;. There's information on getting started there, as well as examples. You can find documentation on how to process the OAuth app authorization flow with that &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_DropboxOAuth2Helper.htm" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Oct 2018 16:39:07 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-10-19T16:39:07Z</dc:date>
    <item>
      <title>Need Clarification on the redirect uri round-trip behviour (Desktop .Net)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-Clarification-on-the-redirect-uri-round-trip-behviour/m-p/303982#M18362</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;Just after some clarification, Im familiar with programming desktop software but new to the web world.&lt;BR /&gt;&lt;BR /&gt;In regards to &lt;SPAN&gt;OAuth 2&lt;/SPAN&gt;, I have two options for the redirect set.&lt;BR /&gt;-&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/oauth2/redirect_receiver" target="_blank"&gt;https://www.dropbox.com/oauth2/redirect_receiver&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;-&lt;SPAN&gt;&lt;A href="https://www.dropbox.com/1/oauth2/redirect_receiver" target="_blank"&gt;https://www.dropbox.com/1/oauth2/redirect_receiver&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I got these out of the guide here,&lt;BR /&gt;&lt;A href="https://blogs.dropbox.com/developers/2014/04/dropbox-authorization-in-a-windows-forms-app/" target="_self"&gt;https://blogs.dropbox.com/developers/2014/04/dropbox-authorization-in-a-windows-forms-app/ &lt;/A&gt;&lt;/P&gt;&lt;P&gt;They work in getting an access token, though two things happen that dont seem to be right.&lt;BR /&gt;One) The page tab stayed open; either blank or with a 404 error depending on the redirect uir used.&lt;BR /&gt;Two) The following code fails, which is straight from the guide I linked above. I have tried converting to the Api v2 and still failed, I get a 400 error.&lt;/P&gt;&lt;PRE&gt;var client = new WebClient();
        client.Headers["Authorization"] = "Bearer " + accessToken;
        var accountInfo = client.DownloadString("https://www.dropbox.com/1/account/info");
        MessageBox.Show("Account info: " + accountInfo);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If calirication on the above could be explained that would be greatly appreciated.&lt;BR /&gt;Also, if you have any information on how I would make the url redirect back to my app after clicking Authroize, that would also be greatly appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:09:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-Clarification-on-the-redirect-uri-round-trip-behviour/m-p/303982#M18362</guid>
      <dc:creator>Cyber-Dog</dc:creator>
      <dc:date>2019-05-29T09:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need Clarification on the redirect uri round-trip behviour (Desktop .Net)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-Clarification-on-the-redirect-uri-round-trip-behviour/m-p/304136#M18367</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.dropbox.com/developers/2014/04/dropbox-authorization-in-a-windows-forms-app/" target="_blank"&gt;That blog post&lt;/A&gt; is relatively old, and utilizes a mechanism we no longer support, per the note at the top.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To answer your specific questions though, note that&amp;nbsp;&lt;A href="https://www.dropbox.com/oauth2/redirect_receiver" target="_blank"&gt;https://www.dropbox.com/oauth2/redirect_receiver&lt;/A&gt; does (without the "/1") does not appear in that post, and does not point to a valid page. Only&amp;nbsp;&lt;A href="https://www.dropbox.com/1/oauth2/redirect_receiver" target="_blank"&gt;https://www.dropbox.com/1/oauth2/redirect_receiver&lt;/A&gt; (with the&amp;nbsp; "/1") is valid. Further, while we supply that for your convenience, you do not need to use it. You can use your own redirect URI if desired.&lt;/P&gt;
&lt;P&gt;Also,&amp;nbsp;&lt;A href="https://www.dropbox.com/1/account/info" target="_blank"&gt;https://www.dropbox.com/1/account/info&lt;/A&gt; is part of API v1,&amp;nbsp;which has since been retired and no longer works.&lt;/P&gt;
&lt;P&gt;Instead, to use the current Dropbox API from .NET, you should use &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" target="_blank"&gt;the official&amp;nbsp;Dropbox API v2 .NET SDK&lt;/A&gt;. There's information on getting started there, as well as examples. You can find documentation on how to process the OAuth app authorization flow with that &lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_DropboxOAuth2Helper.htm" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 16:39:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Need-Clarification-on-the-redirect-uri-round-trip-behviour/m-p/304136#M18367</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-10-19T16:39:07Z</dc:date>
    </item>
  </channel>
</rss>

