pod "CTAPI_Marvel"
- apply private key and public key from Marvel:https://developer.marvel.com
- add
pod "CTAPI_Marvel"
in your Podfile - create an Object named
Target_CTMarvelKey
in your own project
@implementation Target_CTMarvelKey
- (NSString *)Action_MarvelPublicKey:(NSDictionary *)params
{
return @"your public key";
}
- (NSString *)Action_MarvelPrivateKey:(NSDictionary *)params
{
return @"your private key";
}
@end
- create an Object named
Target_CTAppContext
in your own project (for CTNetworking)
@implementation Target_CTAppContext
- (BOOL)Action_isReachable:(NSDictionary *)params
{
return YES;
}
- (NSInteger)Action_cacheResponseCountLimit:(NSDictionary *)params
{
return 2;
}
- (BOOL)Action_shouldPrintNetworkingLog:(NSDictionary *)params
{
return YES;
}
@end
- haa! you can use MARVEL API now! read demos for how to use the APIManagers