TMDBClient 0.3.0

TMDBClient 0.3.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2015
SPMSupports SPM

Maintained by Carlos García.



TMDBClient

Example Usages

import UIKit
import TMDBClient

class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()

        TMDBClient.sharedInstance.APIKey = "{API_KEY}"

        TMDBClient.sharedInstance.callService(.Configuration) { json in
            print(json)
        }

    }
}

Getting an Observable

import UIKit
import RxSwift
import TMDBClient

class ViewController: UIViewController {

    var disposeBag = DisposeBag()

    override func viewDidLoad() {
        super.viewDidLoad()

        TMDBClient.sharedInstance.APIKey = "{API_KEY}"

        TMDBClient.sharedInstance.rx_JSON(.Configuration)
            .subscribeNext { json in
                print(json)
            }
            .addDisposableTo(disposeBag)

    }
}

Installation

CocoaPods TMDBClient is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "TMDBClient"

Or to get RxSwift support

pod "TMDBClient/Rx"

Carthage It’s also available to install using Carthage

github "TMDBClient/TMDBClient"

Requirements

TMDBClient requires Swift 2.0 and dedicated versions of RxAlamofire (2.0, RxSwift (2.0.0-beta) and SwiftyJSON.

License

TMDBClient is available under the MIT license. See the LICENSE file for more info.