Bobomb is a Swift framework that makes it easy for iOS apps to communicate with the GiantBomb API.
NOTE: This is a work in progress. Many of GiantBomb API endpoints are not yet supported.
Bobomb requires Swift 4.1 and Xcode 9.3.
Install with Carthage by adding the framework to your project's Cartfile.
github "angelodipaolo/Bobomb"
import Bobomb
let client = GiantBombClient(apiKey: "12345")
client.searchGames(query: "metroid") { (payload: Result<Game>) in
switch result {
case .success(let payload):
for game in payload.results {
print(game.name)
}
case .failure(let error):
print("error = \(error)")
}
}