nodejs-ebay-api
nodejs-ebay-api copied to clipboard
possible get a list of matching categories and ids given a string?
Is this possible with this API?
https://developer.ebay.com/api-docs/commerce/taxonomy/resources/category_tree/methods/getCategorySuggestions
I have tried this but I get a 503 error:
getCategories(){
const params = {
q: this.keywords.split(/\s+/),
category_tree_id: this.categoryId
};
return new Promise((resolve, reject) => {
this.client.xmlRequest({
serviceName: 'Taxonomy',
opType: 'getCategorySuggestions',
appId: this.appId,
params,
parser: this.client.parseResponseJson
}, (err, res) => {
if (err) {
return reject(err);
}
resolve(res);
});
});
}
@chovy You can look into this node module https://github.com/ajay2507/ebay-node-api
@chovy Alternative is here https://www.npmjs.com/package/ebay-node-client#get-category-suggestions
@chovy Nope. You linked new(JSON) API. This package is for old (XML) API