Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

RWMAmazonProductAdvertisingManager

RWMAmazonProductAdvertisingManager is an AFHTTPRequestOperationManager subclass for interacting with the Amazon Product Advertising API.

Example Usage

RWMAmazonProductAdvertisingManager *manager = [[RWMAmazonProductAdvertisingManager alloc] initWithAccessKeyID:@"KEY" secret:@"SECRET"];
manager.responseSerializer = [AFHTTPResponseSerializer serializer];

NSMutableDictionary *parameters = [@{
                             @"Service" : @"AWSECommerceService",
                             @"Operation" : @"ItemLookup",
                             @"ItemId" : ISBN,
                             @"ResponseGroup" : @"ItemAttributes,Images,EditorialReview",
                             @"AssociateTag" : @"12345"
                             } mutableCopy];

if (type == RWMAmazonProductAdvertisingISBN13) {
    [parameters setObject:@"EAN" forKey:@"IdType"];
    [parameters setObject:@"Books" forKey:@"SearchIndex"];
    [parameters setObject:@"All" forKey:@"Condition"];
}

[manager enqueueRequestOperationWithMethod:@"GET" parameters:[parameters copy] success:^(id responseObject) {

} failure:^(NSError *error) {

}];

Contact

Michał Zaborowski

License

RWMAmazonProductAdvertisingManager is available under the MIT license. See the LICENSE file for more info.

About

AFNetworking Client for Amazon Product Advertising API

Resources

Stars

13 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages