migrated to v15

This commit is contained in:
Luke Hagar
2024-03-18 14:51:32 -07:00
parent be42385d2e
commit 56ce2a19cf
507 changed files with 25844 additions and 25 deletions

23
USAGE.md Normal file
View File

@@ -0,0 +1,23 @@
<!-- Start SDK Example Usage [usage] -->
```swift
import Foundation
import Plexswift
let client = Client(security: .accessToken("<YOUR_API_KEY_HERE>"))
let response = try await client.server.getServerCapabilities()
switch response.data {
case .twoHundredApplicationJsonObject(let twoHundredApplicationJsonObject):
// Handle response
break
case .fourHundredAndOneApplicationJsonObject(let fourHundredAndOneApplicationJsonObject):
// Handle response
break
case .empty:
// Handle empty response
break
}
```
<!-- End SDK Example Usage [usage] -->