Swift SDK to work with Jellyfin servers.
Generated using CreateAPI
JellyfinClient
uses an underlying Get APIClient to provide basic functionality for interfacing with a Jellyfin server:
Authorization
header for every requestDate
valuessignIn
for generating a session access tokensignOut
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.
The mechanism for generating Entities, Extensions, and Paths with CreateAPI is provided as an Xcode command plugin.
# runs the CreateAPI Xcode command plugin
$ swift package --allow-writing-to-package-directory generate-api
Alternatively, you can generate your own Swift Jellyfin SDK using CreateAPI or any other OpenAPI generator.
link |
Stars: 25 |
Last commit: 3 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics