How to authenticate without browser/app in c# ?
I did all the operation on dropbox but at the start(only one time) it ask me for the username & password
But I don't want any popup for authentication.I need to do it through code.
Here is my sample code where popup out for username & password then I get the token:
private void GetAccessToken()
{
var login = new DropboxLogin(apiKey,appSecret);
login.Owner = this;
login.ShowDialog();
if (login.IsSuccessfully)
{
Properties.Settings.Default.AccessToken = login.AccessToken.Value;
Properties.Settings.Default.Save();
}
else
{
MessageBox.Show("Failed to get access token................");
}
}
Can you pleas help me?
Thanks in advance!