Skip to content

Connecting to OwnCloud

herao67 edited this page Apr 29, 2021 · 2 revisions

Due to a small error in the current version you need to set the port.

// Basic authentication required
IClient c = new Client(new NetworkCredential { UserName = "user123", Password = "xxxx" });
// Set basic information for WebDAV provider
c.Server = "https://owncloud.xyz.com/";
c.BasePath = "remote.php/dav/files/user123/";
c.Port = 443;
// List items in the root folder
var files = await c.List();

Clone this wiki locally