Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

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

Open
ralyodio opened this issue Jan 1, 2018 · 3 comments
Open

Comments

@ralyodio
Copy link

ralyodio commented Jan 1, 2018

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);
            });
        });
    }
@pajaydev
Copy link

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

@bhushankummar
Copy link

@kroleg
Copy link

kroleg commented Mar 24, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants