Latest | 0.4.0 |
---|---|
Homepage | https://github.com/JaviLorbada/JLTMDbClient |
License | MIT |
Platforms | ios 7.0, requires ARC |
Dependencies | AFNetworking |
Authors |
- JLTMDbClient is an iOS wrapper on top of AFNetworking to interact with themoviedb.org API.
Installation:
- The best way to get JLTMDbClient is by using CocoaPods.
- How to install CocoaPods
Demo App:
- Clone the repository:
$ git clone [email protected]:JaviLorbada/JLTMDbClient.git
- Open the
.xcworkspace
file to see the example:$ open JLTMDbClient.xcworkspace
- Run JLTMDbClient target to see a simple visual example.
-
Run JLTMDbClientTests target to see different cases on how to use the API.
Usage:
- 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"
- Add JLTMDbClient to your application, and set up your API KEY.
#import <JLTMDbClient.h>
[[JLTMDbClient sharedAPIInstance] setAPIKey:@"API_KEY"];
- Call a service to get the response from the server *, i.e:
[[JLTMDbClient sharedAPIInstance] GET:kJLTMDbMoviePopular withParameters:nil andResponseBlock:^(id response, NSError *error) {
if(!error){
fetchedData = response;
NSLog(@"Popular Movies: %@",fetchedData);
}
}];
Unit Tests:
- JLTMDbClient includes unit tests. In order to run the unit tests, you need to add your API_KEY. Then you can execute the tests using JLTMDbClientTests scheme within Xcode.
Using xctool
- Tests can also be run from the command line or within a continuous integration environment with
xctool
, which can be installed with Homebrew:
$ brew update
$ brew install xctool --HEAD
"JLTMDBClientTests requires xctool 0.1.14 or above"
-
Once
xctool
is installed, you can execute the tests viarake test
.
Using XCPretty
- Tests can also be run from the command line or within a continuous integration environment with
XCPretty
, which can be installed:
$ gem install xcpretty
"XCPretty requires Ruby 1.8.7 or above."
-
Once
XCPretty
is installed, you can execute the tests viamake test
ormake ci
.
Compatibility:
- Compatible with iOS 7.0.
- Does require ARC.
Dependencies:
- AFNetworking 3.0.0 or superior.
License:
- JLTMDbClient is released under a MIT-License. See License file for more info.
Contact:
- Javi Lorbada
- Follow @javi_lorbada on twitter
- http://javilorbada.me/
Latest podspec
{ "name": "JLTMDbClient", "version": "0.4.0", "summary": "JLTMDbClient is an iOS wrapper on top of AFNetworking to interact with www.themoviedb.org API", "homepage": "https://github.com/JaviLorbada/JLTMDbClient", "screenshots": [ "https://dl.dropboxusercontent.com/u/27371680/Images/Github/JLTMDbClient/MovieList.png", "https://dl.dropboxusercontent.com/u/27371680/Images/Github/JLTMDbClient/MovieDetail.png" ], "license": "MIT", "authors": { "JaviLorbada": "[email protected]" }, "source": { "git": "https://github.com/JaviLorbada/JLTMDbClient.git", "tag": "0.4.0" }, "social_media_url": "https://twitter.com/Javi_Lorbada", "platforms": { "ios": "7.0" }, "requires_arc": true, "source_files": [ "JLTMDbClient", "JLTMDbClient/**/*.{h,m}" ], "dependencies": { "AFNetworking": [ "~> 3.0" ] } }
Sun, 06 Mar 2016 07:31:02 +0000