Latest 0.0.9
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)

https://myanimelist.net/modules.php?go=api

Requirement

Xcode8.3.X(Swift3)

Usage

Setup(MyAnimeList account for request API)


import MalKit

MalKit().setUserData(userId: "xxxxxx", passwd: "yyyyyy")

Search Sample


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

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

Add or Update anime/manga on your list. For additional Anime parameters, please refer here. For Manga, please refer here.

add Sample


MalKit().addAnime(20, params:["status": 1], completionHandler: { (result, status, err) in
     //20 is anime_id
     //result is Bool
     //your process
})

MalKit().addManga(20, params:["status": 1], completionHandler: { (result, status, err) in
     //20 is manga_id
     //result is Bool
     //your process
})

update Sample


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

MalKit().updateManga(20, params:["status": 0, "comments": "test"], completionHandler: { (result, status, err) in
     //20 is manga_id
     //result is Bool
     //your process
})

delete Sample


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

MalKit().deleteManga(20, completionHandler: { (result, status, err) in
      //20 is manga_id
      //result is Bool
     //your process
})

Verify Credentials Sample


MalKit().verifyCredentials(completionHandler: { (result, status, err) in
     //Check for MalKit().setUserData
     //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.9",
    "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.9"
    },
    "source_files": "MalKit/*.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This