0.0.4 • Published 3 years ago

ebay-api-next v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

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

0.0.4

3 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1-alpha.9

6 years ago

0.0.1-alpha.8

7 years ago

0.0.1-alpha.7

7 years ago

0.0.1-alpha.6

7 years ago

0.0.1-alpha.5

7 years ago

0.0.1-alpha.4

7 years ago

0.0.1-alpha.3

7 years ago

0.0.1-alpha.2

7 years ago

0.0.1-alpha.1

7 years ago