This is an API client library for the Indix API written in Objective-C. For detailed documentation, please visit the Indix Developer Portal.
You can install this client using Cocoapods
pod 'indix-api'
First initialize IndixApiClient
, you can do this in your AppDelegate
[IndixApiClient setIndixAppId:@"YOUR_INDIX_APP_ID" appKey:@"YOUR_INDIX_APP_KEY"];
Visit [developer.indix.com](the Indix developer portal) to get your own App ID and Key.
[IndixApiClient getBrands:@{ @"q":@"nike"} success:^(id responseObject) {
NSLog(@"%@", responseObject);
} failure:^(NSError *error) {
NSLog(@"%@", error);
}];
[IndixApiClient getStores:@{ @"q":@"Amazon.com"} success:^(id responseObject) {
NSLog(@"%@", responseObject);
} failure:^(NSError *error) {
NSLog(@"%@", error);
}];
Note: This endpoint downloads all categories. This is not a search end point.
[IndixApiClient getCategories:^(id responseObject) {
NSLog(@"%@", responseObject);
} failure:^(NSError *error) {
NSLog(@"%@", error);
}];
[IndixApiClient getSearchSuggestions:@{ @"q":@"red", @"countryCode":@"US" } success:^(id responseObject) {
NSLog(@"%@", responseObject);
} failure:^(NSError *error) {
NSLog(@"%@", error);
}];
[IndixApiClient getProductSummary:@{ @"q":@"nike", @"countryCode":@"US" } success:^(id responseObject) {
NSLog(@"%@", responseObject);
} failure:^(NSError *error) {
NSLog(@"%@", error);
}];
List of all methods, each of which will return different types of product information.
[IndixApiClient getProductSummary];
[IndixApiClient getProductOffersStandard];
[IndixApiClient getProductOffersPremium];
[IndixApiClient getProductCatalogStandard];
[IndixApiClient getProductCatalogPremium];
[IndixApiClient getProductUniversal];
[IndixApiClient getProductLookupSummary:@{ @"mpid":@"nike", @"8e1d8cd338ada38624d2f9322b259402":@"US" } success:^(id responseObject) {
NSLog(@"%@", responseObject);
} failure:^(NSError *error) {
NSLog(@"%@", error);
}];
List of all methods, each of which will return different types of product information.
[IndixApiClient getProductLookupSummary];
[IndixApiClient getProductLookupOffersStandard];
[IndixApiClient getProductLookupOffersPremium];
[IndixApiClient getProductLookupCatalogStandard];
[IndixApiClient getProductLookupCatalogPremium];
[IndixApiClient getProductLookupUniversal];
This library comes a utility class that converts response from server to concrete class that can be consumed. You can use IXRApiV2Parser
to do parsing.
[IndixApiClient getProductSummary:@{ @"q":@"nike", @"countryCode":@"US" } success:^(id responseObject) {
NSArray *parsedArray = [IXRApiV2Parser parseProductArrayFromSearchDictionary:responseObject];
NSLog(@"%@", parsedArray);
} failure:^(NSError *error) {
NSLog(@"%@", error);
}];
This library only supports real-time API from Indix.com, if you are interested in bulk-api you can contact us at support@indix.com
.