You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Malagann
6 years agoExplorer | Level 3
Webhook URI response in C# / .NET
Good afternoon.
I'm trying to set-up a webhooks on a C#/webform solution but every tutorial I found was either in python or .NET MVC.
Would you have a link for a relevant tutorial ? I'm stuck already on the URI enabling, I cannot seem to get a call back / echo of the "challenge" params despite returning it with the appropriate headers.
And that is without even touching the whole notification part of it. Any link, doc or tutorial that isn't in python would be more than welcome !
Thanks, Malagann
That error seems to indicate that Dropbox couldn't get any response from your server. Is your URL globally Internet accessible? Are you sure your handler code is set up to respond on that particular "/jaguarVoDropbox/updateJaguarMedia.aspx" route?
If that all seems to be set up right, feel free to open an API ticket with the actual URL so we can check on it for you: https://www.dropbox.com/developers/contact
- Greg-DBDropbox Staff
I don't believe we have a webhook sample app or tutorial in C# in particular, unfortunately. I'll send this along as a request for one, but I can't promise if/when one might be written.
I'll be happy to try and offer whatever help I can though. Can you share what you have so far, and what error you're getting?
- MalagannExplorer | Level 3
Hello, thanks for taking the time.
I'm simply trying to get an URI on the app/dropbox page to get started.
I've set up a URI which write a response with the specified headers of the tutorial.
Code :Response.ContentType = "text/plain";
Response.Headers.Add("X-Content-Type-Options", "nosniff");
Response.Write(Request.Params["challenge"]);
Response.End();Perhaps I'm just terribly wrong and have completly misunderstood the tuto' (you know what they say about the error sitting between the keyboard and the chair) and I'm doing it the wrong way on the all echo back the challenge ?
So far, that's being my issue. I have no trouble navigating, downloading files with the dropbox api but the whole webhook thing is puzzling me for now.
Thanks !
- Greg-DBDropbox Staff
Thanks! Nothing looks obviously wrong there. What error are you getting?
E.g., if something is failing when running this code, what do you get in your log? Or, if the connection from Dropbox isn't succeeding, what do you get in webhook error output on your app's page on the App Console?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,882 PostsLatest Activity: 7 hours agoIf 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!