Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ebay API Client for node
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
ebay.js
package.json
readme.md

readme.md

ebay

Ebay client for node. Make calls to Ebay's http API's.

Installing

npm install ebay

Usage

var Ebay = require('ebay')

var ebay = new Ebay({
  app_id: '...'
})

//
//  make request to Ebay Finding API
//
var params = {
  'OPERATION-NAME': 'findItemsByKeywords'
, 'keywords': 'shoes'
}

ebay.get('finding', params, function (err, data) {
  if(err) throw err

  console.log(data)
})

Methods

There are just 2 methods; get and post which make GET and POST requests to Ebay.

  • ebay.get(service, [params], callback)
  • ebay.post(service, [params], callback)

Arguments

  • service: (String) specifies the Ebay API Service to use.

    Supported services are:

  • params: the optional URL parameters object.

Note: Most API calls have required params (e.g. OPERATION-NAME). Check the Ebay API docs for more info.

  • callback: function (err, data) the callback to be invoked on reply.
Something went wrong with that request. Please try again.