Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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

})

About

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

Resources

License

Packages

No packages published