nodejs-ebay-api icon indicating copy to clipboard operation
nodejs-ebay-api copied to clipboard

possible get a list of matching categories and ids given a string?

Open ralyodio opened this issue 8 years ago • 3 comments

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);
            });
        });
    }

ralyodio avatar Jan 01 '18 23:01 ralyodio

@chovy You can look into this node module https://github.com/ajay2507/ebay-node-api

pajaydev avatar Mar 23 '18 16:03 pajaydev

@chovy Alternative is here https://www.npmjs.com/package/ebay-node-client#get-category-suggestions

bhushankummar avatar Oct 11 '18 13:10 bhushankummar

@chovy Nope. You linked new(JSON) API. This package is for old (XML) API

kroleg avatar Mar 24 '19 16:03 kroleg