Latest 0.0.1
Homepage https://github.com/EthanSchatz/ESLoLWrapper
License MIT
Platforms ios 8.0, requires ARC
Authors

About

ESLoLWrapper is a swift wrapper for the League of Legends API

Code Example

Setup

ESLoLWrapper.shared.configure(key: "<YOUR KEY>", region: .na)

Champion

allStaticChampions will fetch a list of all champions

ESLoLWrapper.shared.allStaticChampions() { champions in
    // champions: [ESStaticChampion]?
    // ESStaticChampion - name, title, id, key
}

allChampions will fetch a list of all champions for the set region

ESLoLWrapper.shared.allChampions() { champions in
    // champions: [ESChampion]?
    // ESChampion - id, active, botEnabled, botMmEnabled, freeToPlay, rankedPlayEnabled
}

staticChampion(id) will return a static champion for the given id

ESLoLWrapper.shared.staticChampion(id: 143) { champion in
    // champion: ESStaticChampion?
    // ESStaticChampion - name, title, id, key
}

champion(id) will return a champion for the given id and region

ESLoLWrapper.shared.champion(id: 143) { champion in
    // champion: ESChampion?
    // ESChampion - id, active, botEnabled, botMmEnabled, freeToPlay, rankedPlayEnabled
}

TODO

Installation

TODO

API Reference

TODO

Contributors

Ethan Schatzline

License

MIT License

Latest podspec

{
    "name": "ESLoLWrapper",
    "version": "0.0.1",
    "summary": "A swift wrapper for the League of Legends API.",
    "homepage": "https://github.com/EthanSchatz/ESLoLWrapper",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ethan Schatzline": "[email protected]"
    },
    "social_media_url": "http://twitter.com/_easy_e",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/EthanSchatz/ESLoLWrapper.git",
        "tag": "0.0.1"
    },
    "source_files": "ESLoLWrapper/**/*.{h,swift}",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This