Code Monkey home page Code Monkey logo

ebay-client's Introduction

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).

ebay-client's People

Contributors

activescott avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.