Socket
Socket
Sign inDemoInstall

ebay-api-next

Package Overview
Dependencies
29
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ebay-api-next

eBay API wrapper in ECMAscript@next


Version published
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

ebay-api-next

eBay API calls wrapped in ECMAscript@next

/* CURRENTLY ABANDONED */

install and use

npm i ebay-api-next
'use strict'

const eBayAPI = require( 'ebay-api-next' )
    , Config = require( './config.js' )

eBayAPI.useHeaders( Config.eBay.Headers )
eBayAPI.usePresets( Config.eBay.Presets )

const REQ =
  { ItemID: '123456789012'
  , IncludeItemSpecifics: true
  }


console.info( 'call using Promises with then/catch' )
eBayAPI.GetItem( REQ )
  .then( RES => console.log( 'Response:', RES ) )
  .catch( ERR => console.error( 'Error:', ERR ) )


console.info( 'call using async/await notation' )
const eBay_async_await = API =>
  async OBJ =>
    console.log( await eBayAPI[ API ]( OBJ ) )

eBay_async_await( 'GetItem' )( REQ )

raw XML

Accesable on RES.response_body and RES.request_body if the need be.

tests

Fill out the test-config -- those are the required headers and auth needed to make any API call. Free eBay-developer credentials could be obtained on the dev-portal.

todo

  • old eBay APIs
  • tests
  • new eBay APIs
  • tests
  • documentaion
  • github:
    • readme.md
    • license.md
    • contribute.md
  • tests
  • submit to npm
  • tests
  • profit?
  • tests
  • ...
  • tests

mirrors

license

mit

Keywords

FAQs

Last updated on 22 Nov 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc