Socket
Socket
Sign inDemoInstall

e_bay_buy_api

Package Overview
Dependencies
22
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    e_bay_buy_api

API_to_search_and_browse_items_listed_in_eBay


Version published
Weekly downloads
4
increased by300%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

e_bay_buy_api

EBayBuyApi - JavaScript client for e_bay_buy_api API to search and browse items listed in eBay This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: class io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install e_bay_buy_api --save
git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/e_bay_buy_api then install it via:

    npm install YOUR_USERNAME/e_bay_buy_api --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Getting Started

Please follow the installation instruction and execute the following JS code:

var EBayBuyApi = require('e_bay_buy_api');

var defaultClient = EBayBuyApi.ApiClient.instance;

// Configure API key authorization: OauthSecurity
var OauthSecurity = defaultClient.authentications['OauthSecurity'];
OauthSecurity.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//OauthSecurity.apiKeyPrefix['Authorization'] = "Token"

var api = new EBayBuyApi.BrowseApi()

var itemId = "itemId_example"; // {String} Item Id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getItem(itemId, callback);

Documentation for API Endpoints

All URIs are relative to https://api.ebay.com/buy

ClassMethodHTTP requestDescription
EBayBuyApi.BrowseApigetItemGET /browse/v1/item/{item_id}get details of an item
EBayBuyApi.BrowseApigetItemFeedGET /browse/v1/item_feedget Item Feed
EBayBuyApi.BrowseApigetItemGroupGET /browse/v1/item_group/{item_group_id}get Item Group
EBayBuyApi.BrowseApisearchForItemsGET /browse/v1/item_summary/searchSearch
EBayBuyApi.OrderApigetGuestCheckoutSessionGET /order/v1/guest_checkout_session/{guest_checkoutsession_id}get details of Guest Checkout Session
EBayBuyApi.OrderApigetGuestPurchaseOrderGET /order/v1/guest_purchase_order/{purchase_order_id}get details of a purchase order
EBayBuyApi.OrderApiinitiateGuestCheckoutSessionPOST /order/v1/guest_checkout_session/initiateInitiate Guest Checkout Session
EBayBuyApi.OrderApiplaceGuestOrderPOST /order/v1/guest_checkout_session/{guest_checkoutsession_id}/place_orderPlace Guest Order
EBayBuyApi.OrderApiupdateGuestLineItemQuantityPOST /order/v1/guest_checkout_session/{guest_checkoutsession_id}/update_quantityUpdate Guest Line Item Quantity
EBayBuyApi.OrderApiupdateGuestPaymentInfoPOST /order/v1/guest_checkout_session/{guest_checkoutsession_id}/update_payment_infoUpdate Guest Payment Info
EBayBuyApi.OrderApiupdateGuestShippingAddressPOST /order/v1/guest_checkout_session/{guest_checkoutsession_id}/update_shipping_addressUpdate Guest Shipping Address
EBayBuyApi.OrderApiupdateGuestShippingOptionPOST /order/v1/guest_checkout_session/{guest_checkoutsession_id}/update_shipping_optionUpdate Guest Shipping Option

Documentation for Models

Documentation for Authorization

OauthSecurity

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

FAQs

Last updated on 14 Feb 2017

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