Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
e_bay_buy_api
Advanced tools
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:
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
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
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.
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);
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 |
FAQs
API_to_search_and_browse_items_listed_in_eBay
The npm package e_bay_buy_api receives a total of 0 weekly downloads. As such, e_bay_buy_api popularity was classified as not popular.
We found that e_bay_buy_api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.