e_bay_buy_api v0.0.1
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
Class | Method | HTTP request | Description |
---|---|---|---|
EBayBuyApi.BrowseApi | getItem | GET /browse/v1/item/{item_id} | get details of an item |
EBayBuyApi.BrowseApi | getItemFeed | GET /browse/v1/item_feed | get Item Feed |
EBayBuyApi.BrowseApi | getItemGroup | GET /browse/v1/item_group/{item_group_id} | get Item Group |
EBayBuyApi.BrowseApi | searchForItems | GET /browse/v1/item_summary/search | Search |
EBayBuyApi.OrderApi | getGuestCheckoutSession | GET /order/v1/guest_checkout_session/{guest_checkoutsession_id} | get details of Guest Checkout Session |
EBayBuyApi.OrderApi | getGuestPurchaseOrder | GET /order/v1/guest_purchase_order/{purchase_order_id} | get details of a purchase order |
EBayBuyApi.OrderApi | initiateGuestCheckoutSession | POST /order/v1/guest_checkout_session/initiate | Initiate Guest Checkout Session |
EBayBuyApi.OrderApi | placeGuestOrder | POST /order/v1/guest_checkout_session/{guest_checkoutsession_id}/place_order | Place Guest Order |
EBayBuyApi.OrderApi | updateGuestLineItemQuantity | POST /order/v1/guest_checkout_session/{guest_checkoutsession_id}/update_quantity | Update Guest Line Item Quantity |
EBayBuyApi.OrderApi | updateGuestPaymentInfo | POST /order/v1/guest_checkout_session/{guest_checkoutsession_id}/update_payment_info | Update Guest Payment Info |
EBayBuyApi.OrderApi | updateGuestShippingAddress | POST /order/v1/guest_checkout_session/{guest_checkoutsession_id}/update_shipping_address | Update Guest Shipping Address |
EBayBuyApi.OrderApi | updateGuestShippingOption | POST /order/v1/guest_checkout_session/{guest_checkoutsession_id}/update_shipping_option | Update Guest Shipping Option |
Documentation for Models
- EBayBuyApi.Address
- EBayBuyApi.Adjustment
- EBayBuyApi.Amount
- EBayBuyApi.BillingAddress
- EBayBuyApi.Category
- EBayBuyApi.CheckoutSessionResponse
- EBayBuyApi.CreateGuestCheckoutSessionRequest
- EBayBuyApi.CreditCard
- EBayBuyApi.ErrorDetailV3
- EBayBuyApi.ErrorParameterV3
- EBayBuyApi.ErrorResponse
- EBayBuyApi.GuestPurchaseOrder
- EBayBuyApi.Image
- EBayBuyApi.Item
- EBayBuyApi.ItemDigest
- EBayBuyApi.ItemFeed
- EBayBuyApi.ItemFeedResponse
- EBayBuyApi.ItemGroup
- EBayBuyApi.ItemReturnTerms
- EBayBuyApi.ItemSummary
- EBayBuyApi.LineItem
- EBayBuyApi.LineItemInput
- EBayBuyApi.MarketingPrice
- EBayBuyApi.PaymentInstrumentReference
- EBayBuyApi.PaymentMethod
- EBayBuyApi.PaymentMethodBrand
- EBayBuyApi.PaymentMethodMessage
- EBayBuyApi.PickupOptionSummary
- EBayBuyApi.PricingSummary
- EBayBuyApi.ProvidedPaymentInstrument
- EBayBuyApi.PurchaseOrderSummary
- EBayBuyApi.RatingHistogram
- EBayBuyApi.ReviewRating
- EBayBuyApi.SearchPagedCollection
- EBayBuyApi.Seller
- EBayBuyApi.ShippingDetail
- EBayBuyApi.ShippingOption
- EBayBuyApi.ShippingOptionSummary
- EBayBuyApi.TargetLocation
- EBayBuyApi.TimeDuration
- EBayBuyApi.TypedNameValue
- EBayBuyApi.UpdatePaymentInformation
- EBayBuyApi.UpdateQuantity
- EBayBuyApi.UpdateShippingOption
Documentation for Authorization
OauthSecurity
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
7 years ago