One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
shawnj013
7 years agoExplorer | Level 3
Dropbox API mvc 5
Hello, I am not new to Dropbox, but I am new to implementing APIs, I am a bit confused about the process.
I have created my development:status App and have my token. But I can't find solid steps on where to insert the code that was given. I am using ASP.NET MVC 5, my questions include:
1) Where is the best place to insert the code - Controller?
2) What exactly do I need to implement this API - I have a documents section in my project and would like users to get access to Dropbox as an option when clicking on 'Add Doc' button.
3) I have looked at the examples, do I need the RestDropBoxApi?
4) Is there a simple end to end tutorial or video available?
(I apologize in advance for all the questions, but I searched everywhere and don't know where else to turn). I really appreciate any help on this project.
- Greg-DB
Dropbox Staff
When you register an app, you get an app key and secret that identify your app. You additionally can "Generate" an access token, which enables access to your own account. While the app key (and sometimes the secret) may be used in your app, you generally shouldn't embed your own access token in your app itself. You should instead implement the OAuth app authorization flow in your app so that arbitrary users can connect to it.
1) I can help with questions about the Dropbox API, but that doesn't include general questions about project structure like this, so I'm afraid I can't offer much insight on this one.
2) For connecting to the Dropbox API from .NET, we recommend using the official Dropbox API v2 .NET SDK. There's documentation and examples there to help you get started. For instance, here's an example that shows how to use the OAuth flow via DropboxOAuth2Helper, and download a file via DownloadAsync.
3) I don't know what you're referring to by "RestDropBoxApi". That doesn't sound like an official Dropbox resource. (The Dropbox API isn't a "REST" API.) As mentioned above, we recommend using the official Dropbox API v2 .NET SDK.
4) We don't have videos, but you can find working samples apps for the .NET SDK here.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 3 hours ago
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!