/**
 * example ebay API request to Trading:GetOrders
 */

var ebay = require('../index.js');

ebay.xmlRequest({
  serviceName : 'Trading',
  opType : 'GetOrders',

  // app/environment
  devId: '...........',
  certId: '...........',
  appName: '...........',
  sandbox: true,

  // per user
  authToken: '...........',

  params: {
    'OrderStatus': 'Active',
    'NumberOfDays': 1
  }
}, function(error, results) {
  // ...
});
/**
 * example ebay API request to Trading:GetOrders
 */

var ebay = require('../index.js');

ebay.xmlRequest({
  serviceName : 'Trading',
  opType : 'GetOrders',

  // app/environment
  devId: '...........',
  certId: '...........',
  appId: '...........',
  sandbox: true,

  // per user
  authToken: '...........',

  params: {
    'OrderStatus': 'Active',
    'NumberOfDays': 1
  }
}, function(error, results) {
  // ...
});

Change appName to appId since appName no longer works