mirror of
https://github.com/jellyfin/jellyfin-sdk-swift.git
synced 2025-02-17 04:07:34 +00:00
Jellyfin SDK for Swift
A Swift async/await SDK for Jellyfin, generated using CreateAPI.
Usage
The JellyfinClient
object is a wrapper around Get's APIClient to provide basic functionality for interfacing with a Jellyfin server, notably injecting required headers for each request. JellyfinClient
uses the same API as APIClient
for making all requests.
You are still able to use any networking stack you desire by using the provided Entities and Paths.
let jellyfinClient = JellyfinClient(configuration: configuration)
// Provided method on JellyfinClient
let response = jellyfinClient.signIn(username: "jelly", password: "fin")
Documentation
- TODO: host .doccarchive on GH Pages
Generation
Generating the Entities, Extensions, and Paths with CreateAPI is provided as an Xcode command plugin.
- Download the latest Jellyfin schema
- Move the schema to /Sources
- Delete the current Entities, Extensions, and Paths folders
- Run the following command in the repo directory:
swift package --allow-writing-to-package-directory generate-api
- New Entities, Extensions, and Paths folders should be generated within the package.
Description
Languages
Swift
100%