Skip to content

Commit

Permalink
updated Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pajaydev committed Nov 28, 2018
1 parent 81de134 commit f863fba
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ The intent is to simplify the request process by handling the tedious logic. It'
* [Search Items with Free Shipping](#searchitemsbyfreeshipping)
* [Search Items Based on Price and Condition](#searchitemsbyfilter)
* [Taxonomy Api(getDefaultCategoryTreeId, getCategoryTree, getCategorySubtree, getCategorySuggestions)](#taxonomyapi)
* [Get Most Watched item, Get Most Similar Items](#merchandisingapi)
* [Test](#test)
* [Issues](#issues)
* [Contribution](#contribution)
Expand Down Expand Up @@ -205,6 +206,7 @@ ebay.getAccessToken()

## SearchItemsByFilter
```javascript

ebay.getAccessToken()
.then((data) => {
ebay.searchItems({
Expand All @@ -219,6 +221,32 @@ ebay.getAccessToken()
})
});
```

## MerchandisingApi
```javascript

ebay.getMostWatchedItems({
maxResults: 3, // optional
categoryId: 267 // optional
}).then((data) => {
if (data.errorMessage) {
console.log("Error:" + data.errorMessage);
}
console.log(JSON.stringify(data));
});


ebay.getSimilarItems({
maxResults: 3, // optional
itemId=280254552262 // optional
}).then((data) => {
if (data.errorMessage) {
console.log("Error:" + data.errorMessage);
}
console.log(JSON.stringify(data));
// JSON format of similar items.
});
```
## TaxonomyApi

```javascript
Expand Down

0 comments on commit f863fba

Please sign in to comment.