Socket
Socket
Sign inDemoInstall

ebay

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ebay

Ebay API client for node


Version published
Weekly downloads
8
decreased by-38.46%
Maintainers
1
Weekly downloads
 
Created
Source

#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:

    • finding: Ebay Finding API
  • 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.

Keywords

FAQs

Package last updated on 01 May 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc