Latest 0.3.0
Homepage https://github.com/carlosypunto/TMDBClient
License MIT
Platforms ios 8.0, requires ARC
Authors

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.

Latest podspec

{
    "name": "TMDBClient",
    "version": "0.3.0",
    "summary": "A simple TMDB Client.",
    "platforms": {
        "ios": "8.0"
    },
    "description": "A simple TMDB Client with optional",
    "homepage": "https://github.com/carlosypunto/TMDBClient",
    "license": "MIT",
    "authors": {
        "Carlos Garcu00eda": "[email protected]"
    },
    "source": {
        "git": "https://github.com/carlosypunto/TMDBClient.git",
        "tag": "0.3.0"
    },
    "social_media_url": "https://twitter.com/carlos_a_secas",
    "requires_arc": true,
    "default_subspecs": "Core",
    "subspecs": [
        {
            "name": "Core",
            "source_files": "TMDBClient/Source/*.swift",
            "dependencies": {
                "Alamofire": [
                    "~> 3.1"
                ],
                "SwiftyJSON": [
                    "~> 2.3"
                ]
            },
            "frameworks": "Foundation"
        },
        {
            "name": "Rx",
            "source_files": "TMDBClient/Source/Rx/*.swift",
            "dependencies": {
                "RxSwift": [
                    "~> 2.0.0-beta"
                ],
                "RxAlamofire/RxCocoa": [
                    "~> 0.3.1"
                ],
                "TMDBClient/Core": []
            }
        }
    ]
}

Pin It on Pinterest

Share This