https://github.com/azurlane-api/azurlane-swift
Wrapper for the unofficial azur lane json api in Swift
https://github.com/azurlane-api/azurlane-swift
Last synced: 9 months ago
JSON representation
Wrapper for the unofficial azur lane json api in Swift
- Host: GitHub
- URL: https://github.com/azurlane-api/azurlane-swift
- Owner: azurlane-api
- License: gpl-3.0
- Created: 2019-11-13T22:00:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T10:41:05.000Z (over 6 years ago)
- Last Synced: 2025-04-04T22:23:52.071Z (over 1 year ago)
- Language: Swift
- Homepage:
- Size: 43.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# azurlane-swift
Wrapper for the unofficial azur lane json api in Swift
## Install
Import the library into your Package.swift \
`.package(url: "https://github.com/azurlane-api/azurlane-swift.git", from: "")`
## Example
```swift
import Foundation
import AzurLane
let azurlane = AzurLane()
azurlane.getShips(from: .RARITY, with: "Super Rare") { (result: Result) in
switch result {
case .failure(let error):
print(error)
case .success(let response):
for ship in response.ships {
print("[\(ship.id)]: (\(ship.name))")
}
}
}
RunLoop.main.run()
```
## Support
