Dropbox Integration

I'm new to drop box integration, but I'm not quite sure how to create a call to get the secret request token.

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

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

Thanks for any help you can provide.

PS: I just don’t know which C # libraries to use for this.

+7
source share
3 answers

There is a .Net Dropbox library on Codeplex that looks good: http://sharpbox.codeplex.com/

+3
source

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 have included namespaces to clarify the location of each class, but you should probably just use directives at the top of your file.

+2
source

System.Net.WebRequest is the class you want. In particular, you will need to call Create () with the URL, and then call GetResponse () to read the result.

0
source

All Articles