<?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: Migration V1 to V2 in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208184#M10224</link>
    <description>As a security feature, each exact redirect URI does need to be pre-registered. &lt;BR /&gt;&lt;BR /&gt;If you don't know the redirect URI ahead of time, one thing you may be able to do instead is to use one static redirect URI but encode the necessary information in the 'state' parameter, and decode it as necessary after the redirect back to your app, to handle it as necessary:&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;Alternatively, you could forgo using a redirect URI entirely. With the "code" flow, you can omit redirect_uri and have the user copy and paste the code manually. (Or, for the "token" flow, you can use &lt;A href="https://www.dropbox.com/1/oauth2/display_token" target="_blank"&gt;https://www.dropbox.com/1/oauth2/display_token&lt;/A&gt; as the redirect URI and have the user copy and paste the access token.)</description>
    <pubDate>Thu, 23 Feb 2017 17:45:39 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-02-23T17:45:39Z</dc:date>
    <item>
      <title>Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/207678#M10191</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in V1 I simply use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        Public Function write(myFile As String) As MetaData
            Dim Client As DropNetClient = New DropNetClient(Konstanten.DropboxAppKey, Konstanten.DropboxAppSecret)
Client.UseSandbox = True
            Client.GetToken()
            Process.Start(Client.BuildAuthorizeUrl())
            MessageBox.Show("Wait")
            Try
                Dim accessToken = Client.GetAccessToken()
                Dim myFilestream As FileStream = New FileStream(myFile, FileMode.Open, FileAccess.Read)
                Dim myReturn As MetaData = Client.UploadFile("/", System.IO.Path.GetFileName(myFile), myFilestream)
                myFilestream.Close()
                Return myReturn
            Catch ex As Exception
                Return Nothing
            End Try

        End Function&lt;/PRE&gt;&lt;P&gt;How can &amp;nbsp;I get the token in V2&amp;nbsp;without entering the code by the user???&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:25:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/207678#M10191</guid>
      <dc:creator>JMagnat</dc:creator>
      <dc:date>2019-05-29T09:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/207845#M10198</link>
      <description>&lt;P&gt;For using API v2 from .NET, we&amp;nbsp;recommend using the official&amp;nbsp;Dropbox .NET SDK:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/dotnet" target="_blank"&gt;https://www.dropbox.com/developers/documentation/dotnet&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The examples show how to handle authorization, e.g., using DropboxOAuth2Helper in&amp;nbsp;SimpleBlogDemo:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/Examples/SimpleBlogDemo/Controllers/HomeController.cs#L176" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/Examples/SimpleBlogDemo/Controllers/HomeController.cs#L176&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 19:30:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/207845#M10198</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-21T19:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/207864#M10199</link>
      <description>&lt;P&gt;I had a look at all docus but I cant recognize in the example how I can get an accesstoken. I can generate the uri to show the authentification to the user but I cant receive a token.&lt;/P&gt;
&lt;P&gt;Can you gibe me a hint?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 20:38:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/207864#M10199</guid>
      <dc:creator>JMagnat</dc:creator>
      <dc:date>2017-02-21T20:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/207888#M10200</link>
      <description>The access token is retrieved a few lines later when the user is redirected back to the app after authorizing it here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/Examples/SimpleBlogDemo/Controllers/HomeController.cs#L197" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/Examples/SimpleBlogDemo/Controllers/HomeController.cs#L197&lt;/A&gt;</description>
      <pubDate>Tue, 21 Feb 2017 22:20:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/207888#M10200</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-21T22:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208075#M10216</link>
      <description>I unterstand the following Workflow of this example...&lt;BR /&gt;&lt;BR /&gt;I get the Uri To Show the User the authorisation Website. With the Parameter 'code' the User must Input the code manually into my app.&lt;BR /&gt;Is this right ?</description>
      <pubDate>Wed, 22 Feb 2017 21:25:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208075#M10216</guid>
      <dc:creator>JMagnat</dc:creator>
      <dc:date>2017-02-22T21:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208087#M10217</link>
      <description>If you use the "code" flow without a redirect URI, then yes, the user will have to manually copy and paste the authorization code into the app.&lt;BR /&gt;&lt;BR /&gt;Using a redirect URI is recommended though, as shown in the example, as that will automatically pass the authorization code to your app, without the user copying/pasting it manually.</description>
      <pubDate>Wed, 22 Feb 2017 22:24:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208087#M10217</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-22T22:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208143#M10222</link>
      <description>&lt;P&gt;OK, I understand this. Thanx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately my next question... &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which format must the redirected uri be have? I must register this uri in the apps profile at dropbox. How can it be variable if my app runs on many different PCs?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 12:43:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208143#M10222</guid>
      <dc:creator>JMagnat</dc:creator>
      <dc:date>2017-02-23T12:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208184#M10224</link>
      <description>As a security feature, each exact redirect URI does need to be pre-registered. &lt;BR /&gt;&lt;BR /&gt;If you don't know the redirect URI ahead of time, one thing you may be able to do instead is to use one static redirect URI but encode the necessary information in the 'state' parameter, and decode it as necessary after the redirect back to your app, to handle it as necessary:&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;Alternatively, you could forgo using a redirect URI entirely. With the "code" flow, you can omit redirect_uri and have the user copy and paste the code manually. (Or, for the "token" flow, you can use &lt;A href="https://www.dropbox.com/1/oauth2/display_token" target="_blank"&gt;https://www.dropbox.com/1/oauth2/display_token&lt;/A&gt; as the redirect URI and have the user copy and paste the access token.)</description>
      <pubDate>Thu, 23 Feb 2017 17:45:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208184#M10224</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-23T17:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208202#M10225</link>
      <description>&lt;P&gt;A&amp;nbsp;&lt;SPAN&gt;static redirect URI? What could this be? I think I must use a format like "https:\\aWebSide.com\anything" but this side doesnt exist and dropbox will send&amp;nbsp;the users browser to them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;With ApiV1 the user connect to dropbox&amp;nbsp;and my app get the token to download anything to dropbox. This isnt a web app.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 19:44:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208202#M10225</guid>
      <dc:creator>JMagnat</dc:creator>
      <dc:date>2017-02-23T19:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208204#M10226</link>
      <description>&lt;P&gt;I see this code in an example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;                var builder = new UriBuilder(
                    Uri.UriSchemeHttps,
                    this.Request.Url.Host);

                builder.Path = "/Home/Auth";

                return builder.ToString();&lt;/PRE&gt;
&lt;P&gt;But this generates no static Uri. How can I register this kind of redirectUri in the my dropbox app profile?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 19:49:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208204#M10226</guid>
      <dc:creator>JMagnat</dc:creator>
      <dc:date>2017-02-23T19:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208222#M10227</link>
      <description>&lt;P&gt;A "static redirect URI" would just be some unchanging URL that you could rely on, as a place to send your users. You don't necessarily need to use that technique, but if you do you should only use a URI that you trust (ideally something you control) and that you sure will continue being available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example I linked to is built as a web app though, where the redirect URI would be just be a URL for the app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since it sounds like you're not building a web app, that doesn't apply here. In that case, the &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/tree/master/Examples/SimpleTest" target="_self"&gt;SimpleTest&lt;/A&gt;&amp;nbsp;or &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/tree/master/Examples/UniversalDemo/UniversalDemo" target="_self"&gt;UniversalDemo&lt;/A&gt;&amp;nbsp;samples would be a better reference for you. Check those out to see how this can be handled in a client-side application.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 22:10:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208222#M10227</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-23T22:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208593#M10306</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I add a webbrowser control to my app and now I can add files to ther dropbox. Thanx for the help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim myReturn As Files.FileMetadata = Await bindDropbox.Client.Files.UploadAsync("/Backups/" + bindDropbox.Filename, WriteMode.Overwrite.Instance, body:=myFilestream)&lt;/PRE&gt;
&lt;P&gt;My File exists in the Dropbox and&amp;nbsp;Dropbox shows me realtime that I added a file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But... the UploadAsync never ends and never return to my app. What could be the reason?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2017 14:00:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208593#M10306</guid>
      <dc:creator>JMagnat</dc:creator>
      <dc:date>2017-02-26T14:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208777#M10319</link>
      <description>When using UploadAsync with Await, the call should block until the upload is complete, and then return once it is. This is working properly for me.&lt;BR /&gt;&lt;BR /&gt;How are you checking this behavior? Have you stepped through your code with a debugger? You may wish to do so if you haven't already.</description>
      <pubDate>Mon, 27 Feb 2017 18:57:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208777#M10319</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-27T18:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208894#M10331</link>
      <description>&lt;P&gt;Of course I step through the code. I do the call to UploadAsync and my dropbox shows me that the uploaded file is arrived.&lt;/P&gt;
&lt;P&gt;But the call is never come back to the app.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the webbrowsers Navigating-event&amp;nbsp;I call my write method like&lt;/P&gt;
&lt;PRE&gt;                    If bindDropbox.write(bindDropbox.BackupDestination) Is Nothing Then
                        MessageBox.Show("ERROR")
                    End If
&lt;/PRE&gt;
&lt;P&gt;bindDropbox is a seperate class and the write method is this&lt;/P&gt;
&lt;PRE&gt;        Public Shared Async Function write(myFile As String) As System.Threading.Tasks.Task(Of Files.FileMetadata)
            Try

                Dim myReturn As Files.FileMetadata = Await bindDropbox.Client.Files.UploadAsync("/Backups/" + bindDropbox.Filename, WriteMode.Overwrite.Instance, body:=New MemoryStream(File.ReadAllBytes(myFile)))

                Return myReturn
            Catch ex As Exception
                Return Nothing
            End Try

        End Function
&lt;/PRE&gt;
&lt;P&gt;I have really no idea why UploadAsync isnt coming back.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 07:57:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208894#M10331</guid>
      <dc:creator>JMagnat</dc:creator>
      <dc:date>2017-02-28T07:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208997#M10336</link>
      <description>I unfortunately can't seem to reproduce this behavior. Can you share a small sample project that reproduces this? Thanks in advance!</description>
      <pubDate>Tue, 28 Feb 2017 19:02:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/208997#M10336</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-02-28T19:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Migration V1 to V2</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/209155#M10352</link>
      <description>&lt;P&gt;I built a demo version and... I solved it.&amp;nbsp;&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I blocked the task with another running task in it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now it works. Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 14:58:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Migration-V1-to-V2/m-p/209155#M10352</guid>
      <dc:creator>JMagnat</dc:creator>
      <dc:date>2017-03-01T14:58:25Z</dc:date>
    </item>
  </channel>
</rss>

