Skip to content

Commit b7854e3

Browse files
authored
Updated readme and version bump (#14)
* adding getDefaultCategoryTreeId - taxonomy api * added getCategoryTree and getCategorySubtree * added getCategorySuggestions and getItemAspectsForCategory * updated read me and bump version
1 parent afd524b commit b7854e3

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ The intent is to simplify the request process by handling the tedious logic. It'
2727
* [Search Items by Keyword](#searchitemsbykeyword)
2828
* [Search Items with Free Shipping](#searchitemsbyfreeshipping)
2929
* [Search Items Based on Price and Condition](#searchitemsbyfilter)
30+
* [Taxonomy Api(getDefaultCategoryTreeId, getCategoryTree, getCategorySubtree, getCategorySuggestions)](#taxonomyapi)
3031
* [Test](#test)
3132
* [Issues](#issues)
3233
* [Contribution](#contribution)
@@ -216,6 +217,37 @@ ebay.getAccessToken()
216217
})
217218
});
218219
```
220+
## TaxonomyApi
221+
222+
```javascript
223+
ebay.getAccessToken()
224+
.then((data) => {
225+
ebay.getDefaultCategoryTreeId("EBAY_US").then((data) => {
226+
console.log(data);
227+
// for EN_US { categoryTreeId: '0', categoryTreeVersion: '119' }
228+
});
229+
230+
ebay.getCategoryTree(0).then((data) => {
231+
console.log(data);
232+
// JSON format of complete category tree.
233+
});
234+
235+
ebay.getCategorySubtree(0, 11450).then((data) => {
236+
console.log(data);
237+
// JSON format of complete category sub tree.
238+
});
239+
240+
ebay.getCategorySuggestions(0, "iphone").then((data) => {
241+
console.log(data);
242+
// JSON format of category suggestions.
243+
});
244+
245+
ebay.getItemAspectsForCategory(0, 67726).then((data) => {
246+
console.log(data);
247+
// JSON format of complete category sub tree.
248+
});
249+
});
250+
```
219251

220252
## Test
221253
All test files are present inside test folder. You can run using

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ebay-node-api",
3-
"version": "1.0.3",
3+
"version": "2.3.1",
44
"description": "Ebay node api client",
55
"main": "./src/index.js",
66
"homepage": "https://github.com/ajay2507/ebay-node-api",
@@ -26,4 +26,4 @@
2626
"nock": "^9.2.3",
2727
"sinon": "^4.4.5"
2828
}
29-
}
29+
}

0 commit comments

Comments
 (0)