0.0.1 • Published 7 years ago

e_bay_buy_api v0.0.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 years ago

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