Latest 0.0.3
Homepage https://github.com/nktn/MalKit
License MIT
Platforms ios 10.3, requires ARC
Authors

Carthage compatible
Pod Version
Pod Platform
Pod License
Swift version

====

Description

Swift API Client for MyAnimeList(official API)

Requirement

Xcode8.3.X(Swift3)

Usage

Setup(MyAnimeList account for request API)


import MalKit

MalKit.sharedInstance.setUserData(user_id: "xxxxxx", passwd: "yyyyyy")

Search Sample(anime)


MalKit.sharedInstance.searchAnime("naruto", completionHandler: { (items, res, err) in
    //result is Data(XML). You need to parse XML.
    //your process
})

add Sample(anime)


MalKit.sharedInstance.addAnime(20, status: 2, completionHandler: { (result, res, err) in
     //result is Bool
     //your process
})

update Sample(anime)

MalKit.sharedInstance.updateAnime(20, status: 0, comments:"test", completionHandler: { (result, res, err) in
     //result is Bool
     //your process
})

delete Sample(anime)

MalKit.sharedInstance.deleteAnime(20, completionHandler: { (result, res, err) in
      //result is Bool
     //your process
})

Verify Credentials Sample

MalKit.sharedInstance.verifyCredentials(completionHandler: { (result, res, err) in
     //result is Data(XML). You need to parse XML.
    //your process
})

Install

Carthage

Cartfile

github "nktn/MalKit"

carthage update

CocoaPods

Podfile

pod 'MalKit'

pod install

Licence

MIT

Author

nktn

Latest podspec

{
    "name": "MalKit",
    "version": "0.0.3",
    "summary": "A Swift API Client for MyAnimeList",
    "homepage": "https://github.com/nktn/MalKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "nktn": "spooky.debug[at]gmail.com"
    },
    "platforms": {
        "ios": "10.3"
    },
    "source": {
        "git": "https://github.com/nktn/MalKit.git",
        "tag": "0.0.3"
    },
    "source_files": "MalKit/*.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This