Hi,
in V1 I simply use:
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
How can I get the token in V2 without entering the code by the user???