Latest 1.0.0
Homepage https://github.com/harrywynn/ICNDbKit
License MIT
Platforms ios 8.0
Authors

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

})

Latest podspec

{
    "name": "ICNDbKit",
    "version": "1.0.0",
    "summary": "Swift library for fetching data from the Internet Chuck Norris Database",
    "homepage": "https://github.com/harrywynn/ICNDbKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Harry Wynn": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/harrywynn/ICNDbKit.git",
        "tag": "v1.0.0"
    },
    "source_files": "ICNDbKit",
    "exclude_files": "Classes/Exclude",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This