Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you give a simple example? #13

Open
OliverAbraham opened this issue Feb 4, 2023 · 1 comment
Open

Can you give a simple example? #13

OliverAbraham opened this issue Feb 4, 2023 · 1 comment

Comments

@OliverAbraham
Copy link

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)
{

}

@nikkilocke
Copy link
Owner

nikkilocke commented Feb 4, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants