Swift Package Manager
Package.swift:
let package = Package(
dependencies: [
.package(url: "https://github.com/seven-io/swift-client")
]
)
import SevenClient
let apiKey = "MySevenApiKey"
// alternatively setting apiKey to nil will read SEVEN_API_KEY from environment
// let apiKey = nil
let client = try! SevenClient(apiKey: apiKey)
debugPrint(client.balance())
swift test
Need help? Feel free to contact us.