ILMovieDB is a iOS library for interact with themoviedb.org API v3.
[ILMovieDBClient sharedClient].apiKey = @"YOUR_API_KEY";
[[ILMovieDBClient sharedClient] GET:kILMovieDBMovieTheatres parameters:nil block:^(id responseObject, NSError *error) {
if (!error) {
NSLog(@"%@", responseObject);
}
}];
NSDictionary *params = @{@"id": @"500"};
[[ILMovieDBClient sharedClient] GET:kILMovieDBMovie parameters:params block:^(id responseObject, NSError *error) {
if (!error) {
NSLog(@"%@", responseObject);
}
}];
For now, only the GET
methods are included. See the Method list.
ILMovieDB requires iOS 7.1 and above.
AFNetworking 2.5.0 or superior.
ILMovieDB uses ARC.
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.
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
.
- If you want to get in touch, send an email
- Follow Me on Twitter
- http://goopi.me/
MIT. See the LICENSE file for more info.