CTAPI_Marvel 14

CTAPI_Marvel 14

Maintained by Casa Taloyum.



 
Depends on:
CTNetworking>= 0
AFNetworking>= 0
CTMediator>= 0
 

  • By
  • CasaTaloyum

MARVEL

MARVEL API Document

pod "CTAPI_Marvel"

How To Use It

  • 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

SceenShot

screen shot