Skip to content

Commit f863fba

Browse files
committed
updated Readme
1 parent 81de134 commit f863fba

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ The intent is to simplify the request process by handling the tedious logic. It'
2828
* [Search Items with Free Shipping](#searchitemsbyfreeshipping)
2929
* [Search Items Based on Price and Condition](#searchitemsbyfilter)
3030
* [Taxonomy Api(getDefaultCategoryTreeId, getCategoryTree, getCategorySubtree, getCategorySuggestions)](#taxonomyapi)
31+
* [Get Most Watched item, Get Most Similar Items](#merchandisingapi)
3132
* [Test](#test)
3233
* [Issues](#issues)
3334
* [Contribution](#contribution)
@@ -205,6 +206,7 @@ ebay.getAccessToken()
205206

206207
## SearchItemsByFilter
207208
```javascript
209+
208210
ebay.getAccessToken()
209211
.then((data) => {
210212
ebay.searchItems({
@@ -219,6 +221,32 @@ ebay.getAccessToken()
219221
})
220222
});
221223
```
224+
225+
## MerchandisingApi
226+
```javascript
227+
228+
ebay.getMostWatchedItems({
229+
maxResults: 3, // optional
230+
categoryId: 267 // optional
231+
}).then((data) => {
232+
if (data.errorMessage) {
233+
console.log("Error:" + data.errorMessage);
234+
}
235+
console.log(JSON.stringify(data));
236+
});
237+
238+
239+
ebay.getSimilarItems({
240+
maxResults: 3, // optional
241+
itemId=280254552262 // optional
242+
}).then((data) => {
243+
if (data.errorMessage) {
244+
console.log("Error:" + data.errorMessage);
245+
}
246+
console.log(JSON.stringify(data));
247+
// JSON format of similar items.
248+
});
249+
```
222250
## TaxonomyApi
223251

224252
```javascript

0 commit comments

Comments
 (0)