Latest 1.5
Homepage https://github.com/kerrmarin/KMMTMDBAPIClient
License MIT
Platforms ios 7.0, requires ARC
Dependencies AFNetworking
Authors

CI Status
Version
License
Platform

Warning

This pod only works with versions < 7.0 of Ghost. Once the public write API comes out I’ll look at updating this to support that.

Features

A TMDB API client that allows users to easily query movie and cast information.

  • Get movie details, including similar movies.
  • Get cast details.
  • Get company details.
  • Search for cast and crew.
  • Search for movies.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

This project has a dependency on AFNetworking.

Other requirements:

  • iOS 7.0 or greater
  • ARC

Installation

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

pod "KMMTMDBAPIClient"

Examples

In your app delegate, set your API key:

Code:


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [[KMMTMDBAPIClient client] setAPIKey:@"MY API KEY"];
    return YES;
}

In your view controller, query the API:

Code:


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    [[KMMTMDBAPIClient client] popularMoviesInPage:1 complete:^(id results, NSError *error) {
        NSDictionary *firstMovie = results[@"results"][0];
        self.titleLabel.text = firstMovie[@"original_title"];
        self.releaseDateLabel.text = firstMovie[@"release_date"];
        self.popularityLabel.text = [@"Popularity: " stringByAppendingFormat: @"%f", [firstMovie[@"popularity"] doubleValue] ];
    }];
}

Author

KMMTMDBAPIClient was developed by Kerr Marin Miller (@kerrmarin) in the development of Dejavu.

License

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

Latest podspec

{
    "name": "KMMTMDBAPIClient",
    "version": "1.5",
    "summary": "A TMDB API client",
    "description": "                        A client to interact with the TMDB API and perform queries.n",
    "homepage": "https://github.com/kerrmarin/KMMTMDBAPIClient",
    "license": "MIT",
    "authors": {
        "Kerr Marin Miller": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kerrmarin/KMMTMDBAPIClient.git",
        "tag": "1.5"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes",
    "resource_bundles": {
        "KMMTMDBAPIClient": [
            "Pod/Assets/*.png"
        ]
    },
    "dependencies": {
        "AFNetworking": [
            "~> 2.5"
        ]
    }
}

Pin It on Pinterest

Share This