CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Lukas Herbst.
Not done yet. Will follow.
"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"
#import <LHTMDbClient.h>
[[LHTMDbClient sharedAPIInstance] setAPIKey:@"API_KEY"];
[[LHTMDbClient sharedAPIInstance] GET:kLHTMDbMoviePopular withParameters:nil andResponseBlock:^(id response, NSError *error) {
if(!error){
fetchedData = response;
NSLog(@"Popular Movies: %@",fetchedData);
}
}];
[[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.