We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Gopal B.
10 years agoNew member | Level 1
How to get metadata for files and folders in Dropbox REST API v2 C# using Nemiro.OAuth
I'm converting Dropbox features from v1 to v2. In Dropbox v1 I'm fetching metadata using the below code- RequestResult strReq = OAuthUtility.Get ( ...
Greg-DB
Dropbox Community Moderator
10 years ago[Cross-linking for reference: https://stackoverflow.com/questions/38091736/how-to-get-metadata-for-files-and-folders-in-dropbox-rest-api-v2-c-sharp-using-n ]
We recommend using the official .NET SDK if possible. The FilesRoutes.GetMetadataAsync method offers the relevant functionality.
If you can't use the SDK, you can use the HTTP endpoint, but instead of that alpha route you linked to, you should use /files/get_metadata.
I don't have any sample code for using OAuthUtility in particular, but the documentation there has an example using curl that you can translate. That is, you need to POST to that endpoint with a body containing JSON with your desired parameters, and you should include the OAuth 2 access token in the Authorization header as shown.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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, Facebook or Instagram.
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!