Forum Discussion

SimonFan's avatar
SimonFan
Explorer | Level 3
8 years ago

Problem to get the auth code

Hi All: I have a problem when I was trying to get the auth code. I am using WPF and tring to get the "auth-code-input" from the webpage that dropbox direct to. But the when I was using the following code it alway get null. For now, I set the redirct_uri to empty, does this matter?

 

 

mshtml.IHTMLDocument3 doc3 = WebBrowserAuth.Document as mshtml.IHTMLDocument3;
var myHtmlElement = doc3.getElementById("auth-code-input");
string strAuthCode = myHtmlElement.getAttribute("value");

 

Many thanks in advance!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 2 hours ago
350 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!