BlueskyAPI
April 17, 2024 ยท View on GitHub
BlueskyAPI
Overview
Swift bindings for Bluesky Social, powered by Ozone. No relation to the moderation tools also named Ozone.
Warning
๐ง ๐ง ๐ง Everything in here is very much a work-in-progress! The upstream schemas are still subject to breaking changes and may break at any moment if used in production code. Use at your own risk!
Installation
In Xcode, select File > Add Packages... and enter https://github.com/christiandeange/BlueskyAPI.
Sample Usage
let api = XrpcBlueskyApi()
let call = try await api.describeServer()
switch onEnum(of: call) {
case .success(let success):
print(success.response)
case .failure(let failure):
print(failure.response ?? failure.error ?? failure)
}
Docs are available at ozone.christian.sh.