Swift SDK for Jellyfin
Go to file
2023-11-02 11:57:32 -06:00
.github/workflows Update sdk-unstable-branch.yaml 2023-10-16 13:02:14 -06:00
JellyfinAPI.doccarchive generate with CreateAPI 0.1.0 and doccarchive 2022-08-16 23:32:51 -06:00
Plugins/CreateAPI Update to CreateAPI 0.2.0 (#22) 2023-08-30 16:09:52 -06:00
Sources Update to CreateAPI 0.2.0 (#22) 2023-08-30 16:09:52 -06:00
.gitignore Update .gitignore 2022-08-16 23:39:51 -06:00
.swiftformat update 2022-08-15 20:37:47 -06:00
Makefile Make (#25) 2023-11-02 11:57:32 -06:00
Package.resolved Update Get (#21) 2023-08-30 13:13:49 -06:00
Package.swift Update to CreateAPI 0.2.0 (#22) 2023-08-30 16:09:52 -06:00
README.md Make (#25) 2023-11-02 11:57:32 -06:00

Swift SDK Jellyfin

Swift SDK to work with Jellyfin servers.

Generated using CreateAPI

Usage

JellyfinClient uses an underlying Get APIClient to provide basic functionality for interfacing with a Jellyfin server:

  • inject required Authorization header for every request
  • encoding/decoding of expected Date values
  • signIn for generating a session access token
  • signOut for revoking the current access token
// Create client instance
let jellyfinClient = JellyfinClient(configuration: configuration)

// Sign in user with credentials
let response = jellyfinClient.signIn(username: "jelly", password: "fin")

Alternatively, you can use your own network stack with the generated Entities and Paths.

Generation

# Download latest spec and run CreateAPI
$ make update

Alternatively, you can generate your own Swift Jellyfin SDK using CreateAPI or any other OpenAPI generator.