Skip to content

Can you give a simple example? #13

@OliverAbraham

Description

@OliverAbraham

Hi Nikki,
I'm trying to get your API working.
Your tests are hard to follow.
Is it possible to get a simple example in one method?
That demonstrates how to connect to a Nextcloud instance and list the filenames in the root folder of a user?
I am struggeling with your code and I'm always getting an Exception saying "The format of value '' is invalid"
Best regards!
Oliver

I have tried this:

try
{
var settings = new Settings()
{
ServerUri = new Uri("http://www.abraham-beratung.de/nextcloud/remote.php/dav"),
Username = credentials.UserName,
Password = credentials.Password
};
var api = new Api(settings);
var cloudInfo = await CloudFolder.List(api, "files/IT");
}
catch (Exception ex)
{

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions