I'm trying to integrate dropbox into our application. We have a requirement that we need to save some files in the user's dropbox. Can you point me in the right direction? I'm using C# and Windows Forms. Thank you.
We have an official .NET SDK you can use. You can find information on getting started with that, including installation instructions and example code, here:
https://github.com/dropbox/dropbox-sdk-dotnet
For example, to save files to a connected user's account, you could use the UploadAsync method:
https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_UploadAsync.htm
There's an example of using that here:
https://github.com/dropbox/dropbox-sdk-dotnet/blob/43ec6a3273d461a6f06b9301791c7ac811a3bfb8/dropbox-sdk-dotnet/Examples/SimpleTest/Program.cs#L453
What we are going to do is to save the file in user's dropbox, not in our dropbox so we need to authenticate them. It looks like the example is using our dropbox folder not the user's dropfox.
That example and the SDK are not limited to only your own account. That example implements the OAuth app authorization flow, to get an access token for the end-user, whoever that may be. I recommend reading the OAuth Guide for an overview of how that works.