update readme

This commit is contained in:
2023-10-03 11:52:27 +02:00
parent ba069d56fd
commit 1e3d6f3752
2 changed files with 35 additions and 0 deletions

View File

@@ -10,10 +10,18 @@
<GeneratePackageOnBuild>True</GeneratePackageOnBuild> <GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<IncrementVersionOnBuild>1.yyyy.Mdd.Hmm</IncrementVersionOnBuild> <IncrementVersionOnBuild>1.yyyy.Mdd.Hmm</IncrementVersionOnBuild>
<Version>1.2023.1003.1124</Version> <Version>1.2023.1003.1124</Version>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Update="README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
</Project> </Project>

View File

@@ -1 +1,28 @@
# Nextcloud Client Api # 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);
}
}
```