A node client for eBay Trading API.
Copy env.js.production or env.js.sandbox to env.js file.
If you use calls that set up and retrieve a user's authentication token (these calls are: GetSessionID, FetchToken, GetTokenStatus, and RevokeToken), copy appkeys.js.sample to appkeys.js.
var ebay = require('ebay-trading-api');
// Input parameters for GetItem api call.
// params.data is converted to xml format in the call method.
// http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/GetItem.html
var params = {
callname: 'GetItem',
siteid: 0,
data: {
RequesterCredentials: {
eBayAuthToken: 'your-token-string'
},
ItemID: 'item-id'
}
};
ebay.call(params, function(err, result) {
console.dir(result);
});
npm test