Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester here.
Forum Discussion
sanjayssk
8 years agoHelpful | Level 6
.Net how to get JSON string?
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.
- 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
1 Reply
- Greg-DB8 years ago
Dropbox Community Moderator
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
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,038 PostsLatest Activity: 2 hours ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!