forked from bhushankummar/eBay-node-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add Support for Inventory API : deleteInventoryItem
- Add examples for deleteInventoryItem
- Loading branch information
BL
committed
Oct 27, 2018
1 parent
0f32bd0
commit 8793d71
Showing
5 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
'use strict'; | ||
|
||
var clientId = process.env.EBAY_CLIENT_ID || 'YOUR_KEY'; | ||
var clientSecret = process.env.EBAY_CLIENT_SECRET || 'YOUR_SECRET'; | ||
|
||
var eBay = require('../../../../lib/eBay-node-client')(clientId, clientSecret); | ||
var utils = require('../../../javaScript/utils'); | ||
|
||
var inventoryRequest = async function () { | ||
var userToken = utils.USER_TOKEN; | ||
eBay.setUserToken(userToken); | ||
|
||
var sku = '32984729384730'; | ||
try { | ||
var response = await eBay.inventory.deleteInventoryItem(sku); | ||
console.log('response', response); | ||
} catch (error) { | ||
console.log('error ', error); | ||
return; | ||
} | ||
}; | ||
|
||
inventoryRequest(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters