CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

LHTMDbClient 0.1

LHTMDbClient 0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Lukas Herbst.



  • LHTMDbClient is an iOS wrapper on top of AFNetworking to interact with themoviedb.org API.
  • This project is forked from Javi Lorbada - JLTMDbClient

Installation:

Demo App:


Not done yet. Will follow.

Usage:

  1. Get your API KEY from themoviedb.org

"A TMDb user account is required to request an API key. Commercial users are approved on a per application basis. As always, you must attribute TMDb as the source of your data. Please be sure to read the API FAQ"

  1. Add LHTMDbClient to your application, and set up your API KEY in the AppDelegate - didFinishLaunchingWithOptions.
#import <LHTMDbClient.h>
[[LHTMDbClient sharedAPIInstance] setAPIKey:@"API_KEY"];
  1. Call a service to get the response from the server *, i.e:
[[LHTMDbClient sharedAPIInstance] GET:kLHTMDbMoviePopular withParameters:nil andResponseBlock:^(id response, NSError *error) {
    if(!error){
        fetchedData = response;
        NSLog(@"Popular Movies: %@",fetchedData);
    }
}];
  • When you want to get a specifik episode of an season you can do it like this:
    [[LHTMDbClient sharedAPIInstance] GET:kLHTMDbTV withParameters:@{@"id":self.showId ,@"season_number":self.seasonNr, @"episode_number":self.episodeNr} andResponseBlock:^(id response, NSError *error)
    {
        if (!error)
        {
            self.tvShwoData = response;
            NSLog(@"%@", self.tvShwoData);
        } else
        {
            NSLog(@"%@", error);
        }
    }];

Options have to be NSStrings - and you have to use the IDs @"id", @"season_number" and @"episode_number".
See the Table of contents which request require which options.
If there are any questions please contact me.

Compatibility:

  • Compatible with iOS 7.0.
  • Does require ARC.

Dependencies:

License:

Credits:

Contact: