dropbox-sdk-dotnet | The Official Dropbox API V2 SDK for .NET | SDK library
kandi X-RAY | dropbox-sdk-dotnet Summary
kandi X-RAY | dropbox-sdk-dotnet Summary
The offical Dropbox SDK for DotNet. Documentation can be found on Github Pages.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of dropbox-sdk-dotnet
dropbox-sdk-dotnet Key Features
dropbox-sdk-dotnet Examples and Code Snippets
Community Discussions
Trending Discussions on dropbox-sdk-dotnet
QUESTION
I am trying to use the Dropbox.API code that is listed here:
https://github.com/dropbox/dropbox-sdk-dotnet/tree/master/dropbox-sdk-dotnet/Examples/SimpleTest
I copied their Program.cs into my Program.cs without making other changes to other files in my solution/project.
I am getting
...ANSWER
Answered 2017-Aug-30 at 12:10Have you included a reference to the System.Net.Http.WebRequest DLL? This is where the WebRequestHandler is found, not in System.Net.Http.
See this article on MSDN.
In short, you can add the reference to System.Net.Http.WebRequest
DLL by right clicking on the project and doing Add -> Reference
. Expect a popup window to appear and then put a checkmark next to System.Net.Http.WebRequest
.
QUESTION
I would like to use the DropBox SDK (https://github.com/dropbox/dropbox-sdk-dotnet ) in my c# project.
When I add using NuGet, I get the following error:
Package Dropbox.Api 4.3.0 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package Dropbox.Api 4.3.0 supports: - net45 (.NETFramework,Version=v4.5) - portable-dnxcore50+net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=net45+wp80+win8+wpa81+dnxcore50) - portable-net40+sl5+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile328) One or more packages are incompatible with .NETCoreApp,Version=v1.1.
Lots of searching (including on Stack Overflow) points to needing to add an entry in my .csproj file. Indeed, the SDK says you need to add a reference. I've amended my file as follows but I still get the error.
...ANSWER
Answered 2017-Jun-19 at 09:44The portable version of the Dropbox package is supported on .NET Core, your csproj file however contains a Condition
that does not enable the package target fallback. you can change your csproj to this for the snipped you posted:
QUESTION
We need to get all the root hubs, projects and folders for a user with Forge Data Management API, just like we do with Dropbox API:
Does anybody from Autodesk know how to get all items from the users, without having to enter all folders, projects and hubs?
Best,
...ANSWER
Answered 2017-Jun-08 at 22:30You'll need to recursively list files on all subfolders, this is not natively implemented. This .NET sample implements it on the UI tree, see the tree controller class.
That's an interesting feature from the Dropbox SDK, but more like a SDK feature, not the API.
QUESTION
How property handle errors in Dropbox C# SDK?
I want to use common method for handling errors from different API calls. This method should be used on top app level and in serevals API calls. For most clouds API (like Microsoft OneDrive and Google Drive API) I can do it because there is strictly defined list (enum will all error codes) and only one exception class for error handling.
But in Dropbox C# SDK everything is contrariwise! There's no any error code list but there are dozen exception class (one exception template Dropbox.Api.ApiException
and great amount of errors object for T
template parameter). Look for example on count of error classes for files operation - http://dropbox.github.io/dropbox-sdk-dotnet/html/N_Dropbox_Api_Files.htm
What the hell! How handle all of them ? Write giant catch()
block ?
And worse, most of them use the same errors types!
For example, class Dropbox.Api.Files.LookupError
that describes errors like "Not found", "Malformed Path" and so on is part of 21! others errors classes. For handling the simple "Not found" error I must be able to catch two dozen exceptions! Is it normal?
So, how property handle errors in Dropbox C# SDK?
...ANSWER
Answered 2017-Apr-28 at 17:38If you want to catch any arbitrary Dropbox exception, instead of handling specific ones, you can catch the parent type DropboxException
, like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install dropbox-sdk-dotnet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page