cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.Net how to get JSON string?

.Net how to get JSON string?

sanjayssk
Helpful | Level 6
Go to solution

I'm using ListFolderAsync in Asp.net by using the examples in the SDK. Works fine.

 

But I want to get the JSON string containing the file list in order to convert it directly to an XML file. I'm not familiar with the sdk or .net on how to get that from your response. Can you give a quick sample?

 

Thanks.

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
I don't believe the .NET SDK exposes the raw JSON. The SDKs are built to offer native interfaces, where you don't need to deal directly with JSON, etc. I'll send this along as a feature request though.

If you want the actual JSON, you can make the HTTPS request manually. For example, for ListFolderAsync, that would be a call to /2/files/list_folder:

https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder

View solution in original post

1 Reply 1

Greg-DB
Dropbox Staff
Go to solution
I don't believe the .NET SDK exposes the raw JSON. The SDKs are built to offer native interfaces, where you don't need to deal directly with JSON, etc. I'll send this along as a feature request though.

If you want the actual JSON, you can make the HTTPS request manually. For example, for ListFolderAsync, that would be a call to /2/files/list_folder:

https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?