Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.23 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.23 KB

Bobomb

Build Status Carthage Compatible

logo

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.

Requirements

Bobomb requires Swift 4.1 and Xcode 9.3.

Installation

Carthage

Install with Carthage by adding the framework to your project's Cartfile.

github "angelodipaolo/Bobomb"

Usage

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)")
    }
}