One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
DavidThielen
3 years agoExplorer | Level 4
How can I create & write to a text file on DropBox - without using the DropBox library
Hi all;
I need to write the logging for an app I am working on to DropBox. For each run create a log file, write to it over the course of the app running, then close it at the end.
One big constraint - I can't add libraries to the app. So I need to use the .NET runtime for the communication with DropBox. I can't use the DropBox library.
thanks - dave
Hi DavidThielen,
Using some SDK (including .NET) is for convenience only. You are not obligated to use it! Only mandatory thing to use is API. It's the only way to "talk" to Dropbox server. You can do that using some SDK or directly drive web transactions to corresponding access point by yourself. The choice is yours. When use SDK you are relying while call particular method/function, proper call (or sequence of calls) to be performed to Dropbox server using API. That's it.
- ЗдравкоLegendary | Level 20
Hi DavidThielen,
Using some SDK (including .NET) is for convenience only. You are not obligated to use it! Only mandatory thing to use is API. It's the only way to "talk" to Dropbox server. You can do that using some SDK or directly drive web transactions to corresponding access point by yourself. The choice is yours. When use SDK you are relying while call particular method/function, proper call (or sequence of calls) to be performed to Dropbox server using API. That's it.
- DavidThielenExplorer | Level 4
Hi;
Is there example code anywhere on how to talk directly to the API? Preferably in C#.
thanks - dave
- ЗдравкоLegendary | Level 20
You can use WebRequest class from the core. Example for POST request can be seen here. You should format your request according the Dropbox documentation referred above.
Hope this helps.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 18 hours ago
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!