more work on api & rename to Pilz.Net

This commit is contained in:
Pilzinsel64
2024-08-16 06:59:39 +02:00
parent f57aef5f4f
commit 2efb4f141c
91 changed files with 299 additions and 241 deletions

View File

@@ -0,0 +1,28 @@
# 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.*
```cs
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);
}
}
```