Skip to content

Commit 56a09a7

Browse files
committed
fix: readme example
1 parent d3c5d28 commit 56a09a7

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
Swift library for Navidrome's undocumented API
55

66
## Example
7+
More usage examples can be seen in the
8+
[unit tests.](https://github.com/NavicApp/NavidromeKit/blob/master/Tests/NavidromeKitTests/AuthenticatedTests.swift
9+
)
710
```swift
811
import NavidromeKit
912

@@ -26,7 +29,7 @@ APIClient.shared = APIClient(
2629
// You can store the client instance however you want, but the
2730
// simplest way to do so is to set `APIClient.shared`
2831

29-
let songs = try await APIClient.shared!.fetchSongs()
32+
let songs = try await APIClient.shared!.getSongs()
3033
```
3134

3235
## Notes
@@ -47,10 +50,10 @@ let songs = try await APIClient.shared!.fetchSongs()
4750
as it was made primarily for personal projects.
4851

4952
## Licence
50-
This is under GPLv3. This is to prevent low quality
51-
software from modifying or distributing it, eg. paid
52-
app store apps. This is in the spirit of free and
53-
open source software.
53+
In the spirit of keeping things open source and free,
54+
this library is under the GPLv3 licence.
55+
56+
[Learn more about GPLv3 here.](https://choosealicense.com/licenses/gpl-3.0/)
5457

55-
Alternative commercial or permissive licensing is
56-
available upon request.
58+
Commercial or permissive licensing is available upon
59+
request.

0 commit comments

Comments
 (0)