Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 833 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 833 Bytes

ebay-trading-api

A node client for eBay Trading API.

Configuration

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.

Example

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);
});

Test

npm test