You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
{
}
The text was updated successfully, but these errors were encountered:
Answering this on my phone, a long way from the source code, but I think
the uri should be the Nextcloud server, without remote.php etc.
And, unless you have a folder called files, with a subfolder called IT,
those shouldn't be there either. I can't remember, but you either need an
empty string to get your personal folder, or maybe your user name.
On Sat, 4 Feb 2023, 17:30 OliverAbraham, ***@***.***> wrote:
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)
{
}
—
Reply to this email directly, view it on GitHub
<#13>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFG76JQOQ7JXFJJY2LOZALWV2G2FANCNFSM6AAAAAAURI4A6Y>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
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)
{
}
The text was updated successfully, but these errors were encountered: