Reputation: 3902
I am working in an iOS app which need to get information using Lookup operation from Amazon Product Advertising API.
I follow this Pico Tutoiral, I can successfully show data using ItemSearch operation, But I couldn't show for Loookup operation.
I use follwoing peremeter for Lookup request, But it did not show any data.
// get shared client
AWSECommerceServiceClient *client = [AWSECommerceServiceClient sharedClient];
client.debug = YES;
// build request
ItemLookup *request = [[[ItemLookup alloc] init] autorelease];
request.associateTag = @"tag"; // seems any tag is ok
request.shared = [[[ItemLookupRequest alloc] init] autorelease];
request.shared.condition =@"All" ;
request.shared.idType = @"ASIN";
request.shared.itemId=[NSMutableArray arrayWithObjects:@"ASIN", nil];
request.shared.merchantId=@"Amazon";
request.shared.truncateReviewsAt=0;
request.shared.variationPage=@"All";
For any help thanks in advance.
Upvotes: 1
Views: 613
Reputation: 11
Here itemId needs an array for search index.You can use one or more than ISBN numbers which is the unique identifier of a book to create an array.
Upvotes: 1
Reputation: 1371
The request parameter of ItemId need one or more than one ISBN no. of the book about which you need to get more information
like:
request.shared.itemId=[NSMutableArray arrayWithObjects:@"0890425558",@"1456360736", nil];
Here 0890425558 and 1456360736 are ISBN no of two books.
Upvotes: 2