You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change Filters to String for buy-api search / add sorting / add gtin search (#19)
* change filter handling for buy-api search to simply use a string
* clean some console.logs out
* add sorting to buy-api query
* Add gtin and sort as queryParams / allow gtin as top level search option
// options - optional HTTP request timeout to apply to all requests.
52
52
})
53
53
```
54
54
Creates a new `Ebay` instance.
55
55
56
56
### Getting Client ID:
57
57
58
-
Join eBay developers program.
58
+
Join eBay developers program.
59
59
Register your app here https://go.developer.ebay.com/quick-start-guide.
60
60
61
61
#### Options
@@ -193,7 +193,8 @@ ebay.getAccessToken()
193
193
ebay.searchItems({
194
194
keyword:"drone",
195
195
limit:3,
196
-
filter: { maxDeliveryCost:0 }
196
+
// filter: { maxDeliveryCost: 0 } old object based filter method
197
+
filter:'maxDeliveryCost:0'// new string based filter method. Format here: https://developer.ebay.com/api-docs/buy/static/ref-buy-browse-filters.html#conditionIds
// filter: { price: "[300..800]", priceCurrency: "USD", conditions: "NEW" } old object based filter method
214
+
filter:'price:[300..800],priceCurrency:USD,conditions{NEW}'// new string based filter method. Format here: https://developer.ebay.com/api-docs/buy/static/ref-buy-browse-filters.html#conditionIds
213
215
}).then((data) => {
214
216
console.log(data);
215
217
// Data is in format of JSON
@@ -265,5 +267,5 @@ Willing to share your idea or ready to contribute, check [here](https://github.c
0 commit comments