Hello,
I'm developing a desktop application using visual basic 2015. I need to use dropbox to store backup files of my application.
I've created an app with Permission type [App Folder], I've set the redirect URL to [http://localhost].
I've tested dropbox in my application using generated access token, using this cpde :
Imports Dropbox.Api
Module Connection
Private Const ApiKey As String = "My_API_KEY" 'From app settings
Public Sub Main()
Dim task As Task = Task.Run(Sub() Main())
task.Wait()
End Sub
Public Async Function Run(accessTokenSTR As String) As Task(Of String)
Dim DBX As DropboxClient = New DropboxClient(accessTokenSTR)
Dim Full As Users.FullAccount = Await DBX.Users.GetCurrentAccountAsync
Return Full.Name.DisplayName
End Function
End Module
Private Sub OK_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles OK.Click
UsernameTextBox.Text = Await Run("Generated_Access_Token_From_App_setting")
End Sub
I want to use
UserName :
Password :
to retrieve access token then store this access token to use it next time me or another user provide credentials to use my dropbox app to store backup files from my desktop app.