Files
Pilz/Pilz.Networking.CloudProviders.Nextcloud
2024-01-19 16:58:56 +01:00
..
2024-01-09 16:09:21 +01:00
2023-10-02 17:28:41 +02:00
2024-01-19 16:58:34 +01:00
2023-10-03 11:52:27 +02:00

Nextcloud Client Api

This library is for interactive with Nextcloud instances.

Beware: This library is NOT complete. I usually expand it by the functions I need. So, feel free to extend it with your APIs and your functions and submit a Pull Request with the changes.

How to use

This is a simple shot how the library is intended to be used.

There are two ways to login. One is the LoginFlowV2.

using NextcloudClient ncClient = new();
var userInfo = ncClient.Login(creds);

if (userInfo != null)
{
    var tableId = 16L;
    var tablesClient = ncClient.GetClient<TablesClient>();
    var rows = tablesClient.GetRows(tableId);
    if (rows != null)
    {
        foreach (var row in rows)
            Console.WriteLine(row.RowId);
    }
}