We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Lukag
11 months agoCollaborator | Level 8
Integrate Dropbox in my web application ( asp.net )
Hello,
i'd like integrate my web application with dropbox.
I use visual studio 2015 and asp.net .
I'd like understand if i must install something or i can call API.
If it is possible I'd like also see some examples.
Thank you.
Luca
7 Replies
- Greg-DB11 months ago
Dropbox Community Moderator
Dropbox does offer an API you can use for listing, uploading, and downloading files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here: https://www.dropbox.com/developers
We recommend using an official SDK if possible, but it is not required. For instance, Dropbox does offer a .NET SDK in particular here: https://github.com/dropbox/dropbox-sdk-dotnet The SDK comes with examples here: https://github.com/dropbox/dropbox-sdk-dotnet/tree/main/dropbox-sdk-dotnet/Examples
You can use that if it works for your scenario, but you can also call the HTTPS endpoints directly without it if you need to or would prefer to: https://www.dropbox.com/developers/documentation/http/documentation
- Lukag11 months agoCollaborator | Level 8
I found Dropbox.Api v.7.0.0 in Nuget Package but if i try to instal it i have an error :
Error Could not install package 'Dropbox.Api 7.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.2', but the package does not contain any assembly references or content files that are compatible with that framework.
which framework should I use?
- Greg-DB11 months ago
Dropbox Community Moderator
If you use the official Dropbox .NET SDK, you should use the latest version of it, which is currently v7.0.0 as shown in your message. That supports .NET Standard 2.0, so please make sure you're using that in your environment.
- Lukag11 months agoCollaborator | Level 8
I'm sorry but I don't understand.
I'm trying to install form the Nuget Package the last version of SDK ( 7.0.0 ).
In my solution the property page as set as target framework : .Net Frameword 4.6.2.
This shoud include the .net standard 2.0 that is necessary for this sdk.
What esle can i check ?
- Greg-DB11 months ago
Dropbox Community Moderator
While we can't provide support for .NET or Visual Studio in particular, as those aren't made by Dropbox, my understanding is that .NET Framework 4.6.2 supports .NET Standard 2.0, so I would expect that to work.
I notice you mentioned you were using Visual Studio 2015 though, which is relatively old, and may contain issues addressed in later versions. I recommend upgrading to a newer version of Visual Studio.
- Lukag11 months agoCollaborator | Level 8
i dont' think that it should be for my verson of visual studio and however i cannot update it.
I'll try to use direct call to api.
Do you know where can i fine some code for example in .net ?
Thank you
Luca
- Greg-DB11 months ago
Dropbox Community Moderator
Dropbox does not have example code for directly calling the API endpoints from non-SDK .NET code.
The Dropbox API documentation has examples shown using curl; you could use these as starting points and translate them to your .NET network client of choice.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,033 PostsLatest Activity: 3 years ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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!