Skip to content
Swift library for fetching data from the Internet Chuck Norris Database.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ICNDbKit.xcodeproj
ICNDbKit
.gitignore
.swift-version
ICNDbKit.podspec
LICENSE
README.md

README.md

ICNDbKit

Swift library for fetching data from the Internet Chuck Norris Database.

Requirements

  • iOS 8.0
  • Xcode 8.2

Installation

CocoaPods

  1. Add a pod entry for ICNDbKit to your Podfile pod 'ICNDbKit', '~> 1.0.0'
  2. Install the pod(s) by running pod install

Carthage

  1. Add ICNDbKit to your Cartfile, github "harrywynn/ICNDbKit" ~> 1.0.0
  2. Run carthage update
  3. Follow the rest of the standard Carthage installation instructions to add ICNDbKit to your project

Source files

  1. Add ICNDbKit.swift to your project directly.

Usage

Include ICNDbKit wherever you need it with import ICNDbKit

// fetch a random joke
ICNDbKit.fetchRandomJoke(completion: { (jokes) in

})
// fetch a specific joke
ICNDbKit.fetchJoke(id: 15, completion: { (jokes) in

})
// fetch the number of availabe jokes
ICNDbKit.fetchJokeCount(completion: { (count) in

})
// fetch the available categories 
ICNDbKit.fetchJokeCategories(completion: { (categories) in

})
You can’t perform that action at this time.