Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

coinpoet-ebay-client

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

coinpoet-ebay-client

A JavaScript/TypeScript client for the eBay RESTful Buy API.

  • 0.0.1
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

coinpoet-ebay-client

npm version license Build Status JavaScript Style Guide

This is a client for the eBay RESTful APIs, especially the buy API.

Features & Benefits

  • A thin wrapper around the eBay RESTful APIs. No magic here.
  • Full type definitions via TypeScript with documentation from the eBay-provided YAML for intellisense and quick and accurate documentation.
  • Manages tokens with each request.
  • Tests included (these could be better)

Usage

Install with yarn add coinpoet-ebay-client

Then you can use it as follows:

const config = {
  "baseURL": "https://api.ebay.com",
  "clientID": "<your ebay client id from developer.ebay.com>",
  "clientSecret": "<your ebay secret from developer.ebay.com>",
  "redirectUrlName": "<your ebay redirect url name from developer.ebay.com>"
}

const buyApi = new BuyApi(config)
for await (let item of buyApi.search({ category_ids: [123]})) {
  console.log(item)
}

// Alternatively get one page of results at a time (and not depend on async iterators which may not be available for your version of node - check http://node.green/#ES2018-features-Asynchronous-Iterators)
let pageResult = await buyApi.searchPage({ category_ids: [123], offset, limit })

Contributing

Please submit pull requests (with tests passing in the build).

Keywords

FAQs

Package last updated on 25 Feb 2018

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