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: 

How can I create & write to a text file on DropBox - without using the DropBox library

How can I create & write to a text file on DropBox - without using the DropBox library

DavidThielen
Explorer | Level 4
Go to solution

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

1 Accepted Solution

Accepted Solutions

Здравко
Legendary | Level 20
Go to solution

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.

View solution in original post

3 Replies 3

Здравко
Legendary | Level 20
Go to solution

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.

DavidThielen
Explorer | Level 4
Go to solution

Hi;

Is there example code anywhere on how to talk directly to the API? Preferably in C#.

thanks - dave

Здравко
Legendary | Level 20
Go to solution

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Здравко Legendary | Level 20
  • User avatar
    DavidThielen Explorer | Level 4
What do Dropbox user levels mean?