GiantBomb API client for Swift
Swift Objective-C
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Bobomb.xcodeproj
Bobomb
BobombTests
.gitignore
.travis.yml
Cartfile
Cartfile.resolved
LICENSE
README.md
logo.jpg

README.md

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