Skip to content

Commit

Permalink
Upload solution
Browse files Browse the repository at this point in the history
  • Loading branch information
geloczi committed Dec 1, 2021
1 parent adfcea2 commit e390fd6
Show file tree
Hide file tree
Showing 26 changed files with 1,534 additions and 2 deletions.
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
# synologydotnet-audiostation
Synology AudioStation client for .NET
# SynologyDotNet.AudioStation
Synology AudioStation client for .NET.

* Requires [SynologyDotNet.Core](https://www.nuget.org/packages/SynologyDotNet.Core/)
* Targets **.NET Standard 2.0**

## NuGet package

[NuGet package availabe here](https://www.nuget.org/packages/SynologyDotNet.AudioStation/)
```
Install-Package SynologyDotNet.AudioStation
```

## Usage examples

### Basic example with SynoClient

In order to consume data, you may also add other NuGet packages like **SynologyDotNet.AudioStation**.
This example shows how to configure the connection and login with username and password.

```
// Create an AudioStationClient
var audioStation = new AudioStationClient();
// Create the SynoClient which communicates with the server, this can be re-used across all Station Clients.
var client = new SynoClient(new Uri("https://MySynolgyNAS:5001/"), audioStation);
// Login
await client.LoginAsync("username", "password");
// Get 100 artists from the music library.
var response = await audioStation.ListArtistsAsync(100, 0);
foreach(var artist in response.Data.Artists)
Console.WriteLine(artist.Name);
```
Loading

0 comments on commit e390fd6

Please sign in to comment.