Skip to content

Commit

Permalink
New translations external-api.md (Czech)
Browse files Browse the repository at this point in the history
  • Loading branch information
SubJunk committed Sep 10, 2023
1 parent a184df0 commit 52b723d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ curl -d "" -w "\n%{http_code}\n" -H "api-key: secret_password" -X GET http://loc

This call will list list all available playlist accessible by UMS.

#### adding songs to playlists
#### přidávání skladeb do playlistu

The required `audiotrackid` is delivered during UPnP browse requests and can be extracted from the DIDL response attribute `descMetadata`

Expand Down Expand Up @@ -363,7 +363,7 @@ curl -d "123/Pop" -w "\n%{http_code}\n" -H "api-key: secret_password" -X POST ht

This adds the song with the ID `123` to the playlist `Pop`.

#### removing songs from playlists
#### odebírání skladeb z playlistu

The required `audiotrackid` is delivered during UPnP browse requests and can be extracted from the DIDL response attribute `descMetadata`

Expand Down Expand Up @@ -394,7 +394,7 @@ curl -d "123/Pop" -w "\n%{http_code}\n" -H "api-key: secret_password" -X POST ht

This removes the song with the ID `123` from the playlist `Pop`.

#### create new playlists
#### vytvořit nový playlist

Playlist name should be provided without any path and without file extensions. 

Expand All @@ -415,9 +415,9 @@ curl -d "Contemporary" -w "\n%{http_code}\n" -H "api-key: secret_password" -X PO

This call creates a new playlist file named `Contemporary.m3u8` in the managed playlist folder.

## Java code example
## Příklad kódu Java

This code snippet shows how to use the API with okhttp3 library.
Tento úryvek kódu ukazuje, jak používat API v knihovně okhttp3.

```Java
import nextcp.dto.Config;
Expand Down

0 comments on commit 52b723d

Please sign in to comment.