Skip to content

livepeer/livepeer-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Livepeer Swift Library

The Livepeer Swift library provides convenient access to the Livepeer Studio API from applications built for iOS using Swift library.

Documentation

For full documentation and examples, please visit docs.livepeer.org.

Requirements

The SDK supports iOS 13 and later.

Installation

Swift Package Manager

You can add Livepeer to your project directly in Xcode (File > Add Packages...) or by adding it to your project's Package.swift file:

dependencies: [
    .package(url: "", .upToNextMajor(from: "0.0.1"))
]

Usage

import Foundation
import Livepeer

let livepeer = Client(security: .apiKey(""))

let response = try await livepeer.stream.getAll()

switch response.data {
case .classes(let classes):
    // Handle response
    break
case .empty:
    // Handle empty response
    break
}

About

Swift library for the Livepeer API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages