Client for Outline VPN management API with SSL-pinning, built using async/await and Codable.
Important
On iOS, App Transport Security should be disabled, otherwise SSL verification will always fail.
iOS | MacOS |
---|---|
15 | 12 |
SwiftyOutline is available for install via SPM. Simply add this to your dependencies inside your Package.swift file:
.package(url: "https://github.com/sqeezelemon/SwiftyOutline.git", from: "1.0.0")
import SwiftyOutline // Import
let credentials = OLCredentials(...) // Initialize credentials
let client = OLServerClient(with: credentials) // Initialize client
client.getAccessKeys() // Enjoy :)