@@ -19,7 +19,6 @@ The intent is to simplify the request process by handling the tedious logic. It'
19
19
* [ Examples] ( #examples )
20
20
* [ Getting Access Token] ( #getaccesstoken )
21
21
* [ Fetch Items By Keyword] ( #fetchitemsbykeyword )
22
- * [ Get All Categories] ( #getallcategories )
23
22
* [ Get Items By Category] ( #getitemsbycategory )
24
23
* [ Get Single Item] ( #getitem )
25
24
* [ Get Item By Legacy Id] ( #getitembylegacyid )
@@ -106,21 +105,6 @@ ebay.findItemsByKeywords("iphone").then((data) => {
106
105
});
107
106
```
108
107
109
- ## GetAllCategories
110
- ``` javascript
111
- const Ebay = require (" ebay-node-api" );
112
-
113
- let ebay = new Ebay ({
114
- clientID: " -- Client App id ----" ,
115
- details: " childCategories" // optional parameter
116
- });
117
-
118
- ebay .getAllCategories ().then ((data ) => {
119
- console .log (data); // extract data.CategoryArray
120
- }, (error ) => {
121
- console .log (error);
122
- })
123
- ```
124
108
## GetItemsByCategory
125
109
``` javascript
126
110
let ebay = new Ebay ({
@@ -283,6 +267,41 @@ ebay.getAccessToken()
283
267
});
284
268
});
285
269
```
270
+ ## ShoppingApi
271
+ ``` javascript
272
+
273
+ ebay .getAllCategories (' 1234' ).then ((data ) => {
274
+ console .log (data); // extract data.CategoryArray
275
+ }, (error ) => {
276
+ console .log (error);
277
+ });
278
+
279
+ // Get User Profile
280
+ // https://developer.ebay.com/devzone/shopping/docs/callref/GetUserProfile.html
281
+ ebay .getUserDetails ({ userId: " ajaykumapratha_0" , details: true }).then ((data ) => {
282
+ console .log (data);
283
+ }, (error ) => {
284
+ console .log (error);
285
+ });
286
+
287
+ // Get Item Status
288
+ // https://developer.ebay.com/devzone/shopping/docs/callref/GetItemStatus.html
289
+ ebay .getItemStatus ([" 153265274986" , " 153265274986" ]).then ((data ) => {
290
+ console .log (data);
291
+ }, (error ) => {
292
+ console .log (error);
293
+ });
294
+
295
+ // https://developer.ebay.com/devzone/shopping/docs/callref/GetShippingCosts.html
296
+ ebay .getShippingCosts ({
297
+ itemId: " 153265274986" , destCountryCode: ' US' ,
298
+ destPostalCode: ' 95128'
299
+ }).then ((data ) => {
300
+ console .log (data);
301
+ }, (error ) => {
302
+ console .log (error);
303
+ });
304
+ ```
286
305
287
306
## Test
288
307
All test files are present inside test folder. You can run using
0 commit comments