Dropbox file system support for TagBites.IO, built on Dropbox.Api. Browse, read, write and sync a Dropbox account through the same FileSystem API used for local disk and other storages.
dotnet add package TagBites.IO.Dropbox
using TagBites.IO.Dropbox;
// Long-lived OAuth2 token
var fs = DropboxFileSystem.Create(oauth2Token);
// Or a refresh token with your app's key/secret, so access tokens are renewed automatically
// var fs = DropboxFileSystem.Create(oauth2RefreshToken, appKey, appSecret);
var file = fs.GetFile("/reports/summary.txt");
file.WriteAllText("Hello world!");
var content = file.ReadAllText();See https://www.tagbites.com/io for licensing terms.