Skip to content
master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.

ILMovieDB

ILMovieDB is a iOS library for interact with themoviedb.org API v3.

Usage

[ILMovieDBClient sharedClient].apiKey = @"YOUR_API_KEY";
[[ILMovieDBClient sharedClient] GET:kILMovieDBMovieTheatres parameters:nil block:^(id responseObject, NSError *error) {
    if (!error) {
        NSLog(@"%@", responseObject);
    }
}];

With Parameters

NSDictionary *params = @{@"id": @"500"};
[[ILMovieDBClient sharedClient] GET:kILMovieDBMovie parameters:params block:^(id responseObject, NSError *error) {
    if (!error) {
        NSLog(@"%@", responseObject);
    }
}];

Available methods

For now, only the GET methods are included. See the Method list.

Requirements

ILMovieDB requires iOS 7.1 and above.

Dependencies

AFNetworking 2.5.0 or superior.

ARC

ILMovieDB uses ARC.

Unit Tests

To run the unit tests, you must install the testing dependencies via CocoaPods. To do so:

$ gem install cocoapods # If necessary
$ cd Tests
$ pod install

Once CocoaPods has finished the installation, you have to set the MovieDBApiKey key in the "ILMovieDB.plist" (for the Example app, use "Info.plist").

Now you can execute the test suite via the 'Tests' scheme within Xcode.

Using xctool

To execute the tests from the command line, you will need to install xctool.

To install the commandline testing support via Homebrew:

$ brew install xctool

Once xctool is installed, you can execute the suite via rake test.

Contact

License

MIT. See the LICENSE file for more info.