Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
indix-api-nodejs
Advanced tools
Readme
This is an API client library for the Indix API written in NodeJS. For detailed documentation, please visit the Indix Developer Portal.
Node v5.0.0 or later
Run the following command in your NodeJS project directory to download and install the API client.
npm install indix-api-nodejs --save
The client needs to be first instantiated with the appropriate application id and key to be able to use the different api endpoints.
var ixClient = require('indix-api-nodejs');
ixClient.init({
appKey: 'APP_KEY'
});
Visit [developer.indix.com](the Indix developer portal) to get your own App ID and Key.
var query = { q: 'Nike' }
ixClient.getBrands(query).then(function(results){
console.log(results[0]); // would print { id: 5572, name: 'Nike' }
});
var query = { q: 'Amazon.com' }
ixClient.getStores(query).then(function(results){
console.log(results[0]); // would print { id: 270, name: 'Amazon.com Marketplace', countryCode: 'US' }
});
Note: This endpoint downloads all categories. This is not a search end point.
ixClient.getCategories().then(function(results){
console.log(results[0]); // would print { id: 10161, idPath: "10161", name: 'Computers & Accessories', namePath: 'Computers & Accessories' }
});
var query = { q: 'red', countryCode: 'US' }
ixClient.getSearchSuggestions(query).then(function(results){
console.log(results[0]); // would be 'red'
});
var query = { q: 'nike', countryCode: 'US' }
ixClient.getProductSummary(query).then(function(results){
console.log(results[0]); // would print the product information of the first product
console.log(results[0].mpid); // would print the mpid of the first product
});
List of all methods, each of which will return different types of product information.
ixClient.getProductSummary();
ixClient.getProductOffersStandard();
ixClient.getProductOffersPremium();
ixClient.getProductCatalogStandard();
ixClient.getProductCatalogPremium();
ixClient.getProductUniversal();
var query = { mpid: '8e1d8cd338ada38624d2f9322b259402', countryCode: 'US' }
ixClient.getProductLookupSummary(query).then(function(result){
console.log(result); // would print the product information of the product
console.log(result.mpid); // would print the mpid of the product
});
List of all methods, each of which will return different types of product information.
ixClient.getProductLookupSummary();
ixClient.getProductLookupOffersStandard();
ixClient.getProductLookupOffersPremium();
ixClient.getProductLookupCatalogStandard();
ixClient.getProductLookupCatalogPremium();
ixClient.getProductLookupUniversal();
The API supports processing a large volume of products at once. This is an asynchronous process and requires a 3 step process:
Job ID
.var query = { storeId: [68], countryCode: 'US' }
ixClient.getBulkProductSummary(query).then(function(jobInfo){
console.log(jobInfo); // would be like { id: 1234, status: 'SUBMITTED' }
});
List of all methods, each of which will return different types of product information.
ixClient.getBulkProductSummary();
ixClient.getBulkProductOffersStandard();
ixClient.getBulkProductOffersPremium();
ixClient.getBulkProductCatalogStandard();
ixClient.getBulkProductCatalogPremium();
ixClient.getBulkProductUniversal();
ixClient.getJobStatus(1234).then(function(jobInfo){
console.log(jobInfo); // would be like { id: 1234, status: 'COMPLETED', count: 10000 }
});
ixClient.downloadProducts(1234).then(function(results){
console.log(results[0]); // would print the product information of the first product
console.log(results[0].mpid); // would print the mpid of the first product
});
var query = {
inputFile: fs.createReadStream('test/stubs/bulk-job-input.txt', 'utf8'), // Refer to examples below for format
countryCode: 'US'
}
ixClient.getBulkProductLookupSummary(query).then(function(jobInfo){
console.log(jobInfo); // would be like { id: 1234, status: 'SUBMITTED' }
});
List of all methods, each of which will return different types of product information.
ixClient.getBulkProductLookupSummary();
ixClient.getBulkProductLookupOffersStandard();
ixClient.getBulkProductLookupOffersPremium();
ixClient.getBulkProductLookupCatalogStandard();
ixClient.getBulkProductLookupCatalogPremium();
ixClient.getBulkProductLookupUniversal();
{ "mpn": "1281HTWR", "brandId": 28860 }
{ "mpn": "5121412LMR", "brandId": 6553 }
{ "mpn": "S-19141SIL", "brandId": 2579 }
{ "mpn": "2000157819", "brandId": 48162 }
{ "sku": "228-10245", "storeId": 311 }
{ "sku": "228-10255", "storeId": 311 }
{ "sku": "29G-00752", "storeId": 311 }
{ "sku": "29G-00754", "storeId": 311 }
{ "sku": "29G-01030", "storeId": 311 }
{ "upc": 80196294216 }
{ "upc": 92325000018 }
{ "upc": 844660084877 }
{ "upc": 14389642713 }
{ "upc": 14389642720 }
This is exactly the same as mentioned in the Bulk search for products
section. Please refer to that above.
FAQs
Indix API NodeJS Client
The npm package indix-api-nodejs receives a total of 18 weekly downloads. As such, indix-api-nodejs popularity was classified as not popular.
We found that indix-api-nodejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.