10000 GitHub - christiandeange/BlueskyAPI: Swift Package Manager dependency for Bluesky API bindings.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

christiandeange/BlueskyAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift Package Manager

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.

About

Swift Package Manager dependency for Bluesky API bindings.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  
0