Click here to Skip to main content
15,888,340 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello,

I have a requirement in my MVC4 App where i need to upload some files on dropbox.
Please suggest me any Api which is good and have some good code samples.
I have tried the API http://cgeers.com/2012/03/17/dropbox-rest-api-part-6-oauth-callback/[^]; but it is giving some error.
There are many samples but they are for Asp.Net.

Please suggest the approach i can follow and some good APIs to integrate DropBox in MVC 4 App.

EDIT: The requirement is like I have a page with an option to login to Dropbox. When user clicks Login, a new tab or popup should open where user is asked to allow or deny DropBox. If user allows, it is redirected to login page. After user logins in Dropbox, the tab or popup closes or redirect back to main site. After this the uploading will be done in background.

How can i achieve the whole scenario?

I thought of opening a view in popup when user clicks on option to login to Dropbox. When user will either allow or deny, it will navigate to a callback URL of a view. this will call action method in my controller. Here i can identify if parameters appended in URL are empty/null or contain some value. If it contains some value, it means user has allowed. Also, when user clicks on option to login to Dropbox, I will initiate a timer in my controller, which will call a DropBox method every few seconds to know if the credentials are authenticated. Once it come to know that credentials are authenticated, timer will be stopped. Timer will run only for 5 minutes. at the same time, i will close popup. Also, i need to change the text of that Login button (where user clicks to start this process) when user allows DropBox. but i don't know how to do it.

Please let me know if this approach is Okay.

Thanks.
Posted
Updated 9-Jul-14 2:53am
v2

1 solution

try below .NET client libraries for the Dropbox API
SharpBox [^]
DropNet[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900