Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dropbox integration

I am new to integrating drop box, but I am not quite sure how to generate a call to get the request token secret.

https://www.dropbox.com/developers/reference/api#request-token

I have to make a call to this url https://api.dropbox.com/1/oauth/request_token what is the best way to do this? with c#?.

Thank you for any help you may provide

PS: I am just not sure which c# libraries to use for this.

like image 668
jedgard Avatar asked Jul 10 '12 19:07

jedgard


People also ask

What does Dropbox integrate with?

The most effective teams connect, share, and get to market (and close deals) faster with Dropbox integrations like Slack, Zoom, Salesforce, and HelloSign.

Does Dropbox have an API?

The Dropbox API v2 is a set of HTTP endpoints that help your app integrate with Dropbox. Check out our full HTTP documentation to learn about everything you can do with the API. We recommend that you use one of our officially supported SDKs.

Is Dropbox API free?

You'll need to have a Dropbox account to access the APIs. If you don't already have one, you can sign up for a free account here.


2 Answers

There's a .Net Dropbox library on Codeplex which looks quite good: http://sharpbox.codeplex.com/

like image 193
Surfbutler Avatar answered Sep 19 '22 14:09

Surfbutler


Something like the following should work:

System.Net.WebClient client = new System.Net.WebClient();
string response = client.DownloadString("https://api.dropbox.com/1/oauth/request_token"); // Add necessary query parameters

// Parse the response
System.Collections.Specialized.NameValueCollection collection = System.Web.HttpUtility.ParseQueryString(response);

I included the namespaces to clarify the location of each class, but you should probably just put using directives at the top of your file.

like image 39
Spectre87 Avatar answered Sep 19 '22 14:09

Spectre87