Miss any of our Open RFC calls?Watch the recordings here! »

ebay-node-client

0.0.2 • Public • Published

eBay-node-client (eBay Node Client)

Build Status

This API supported eBay's standard REST-style API that accepts/returns JSON requests and Here is the API reference

You can testify API through eBay API Explorer without any installation.

You can find examples of JavaScript and TypeScript here. This will help you for faster implementation of eBay APIs.

It does supports EcmaScript 5, EcmaScript 6, EcmaScript 8, TypeScript, async-await, Promises, Callback !
It does also supports for AWS Lambda like serverless cloud function call.
It supports pure JSON response.
All methods support Promise and Callback both.
Please Feel free to create Issue for any help !
All developers/contributors are requested to open Pull Request/Merge Request on development branch. Please make sure Test Cases be passed.

Installation

npm install eBay-node-client --save

Test Cases

npm run test.mocha

Debugging

export DEBUG=eBay:*

Usage

export EBAY_CLIENT_ID=KEY
export EBAY_CLIENT_SECRET=SECRET

To Enable Sanbox Purpose

export EBAY_CLIENT_SANDBOX='true'

Configuration Using JavaScript

var eBay = require('ebay-node-client')('YOUR_KEY', 'YOUR_SECRET');

Configuration Using TypeScript

import * as eBay from 'ebay-node-client';
 
const eBay = new eBay();
eBay.setApiKey('YOUR_KEY', 'YOUR_SECRET');

Pull Request

  • Contributors can send their Pull Request to development branch.
  • Kindly validate test cases & linting before opening new PR.

Application

Get OAuth Token

    try {
        var token = await eBay.application.getOAuthToken({
            grant_type: 'client_credentials',
            scope: 'https://api.ebay.com/oauth/api_scope'
        });
        eBay.setToken(token.access_token);
    } catch (error) {
        console.log('error ', error);
    }
Originally by [Bhushankumar Lilapara](https://github.com/bhushankumarl) (bhushankumar.lilapara@gmail.com).

Install

npm i [email protected]

Version

0.0.2

License

MIT

Unpacked Size

52.5 kB

Total Files

31

Last publish

Collaborators

  • avatar