i did a lot of research but couldn't find a solution to my problem.I'm building a dropbox client using dropNet API but when i got an exception when trying to get access token.
Here is my code:
var client = new DropNetClient("KEY", "SECRET");
client.GetToken();
var url = client.BuildAuthorizeUrl();
Uri targetUri = new Uri(url);
webBrowser.Navigate(targetUri);
//the exception raise here because i call the getAccessToken too early
var accessToken = client.GetAccessToken();
I know i have to redirect user to a web browser so i he can authorize the app, then i should call getAccessToken(), the problem is i don't know how to do that if anyone can help me...
Thank you