0.1.11 • Published 3 days ago
promostandards-sdk-js v0.1.11
PromoStandards SDK for Javascript
NOTE: This project is under development and will have unstable API until 1.0.0
Installing
npm install promostandards-sdk-js --save
Usage
const { PromoStandards } = require("promostandards-sdk-js");
// Initialize client with supplier infomation
const supplier = new PromoStandards.Client({
id: "account_id",
password: "password",
endpoints: [
{
type: "ProductData",
version: "1.0.0",
url: "supplier.com/product-data.svc",
},
],
});
// Get product data for item_id
supplier.productData
.getProduct({
productId: "item_id", // Product ID
localizationCountry: "US", // or `CA` for Canada
localizationLanguage: "en", // or `fr` for French
})
.then((result) => console.log(result));
TODO
Service API
- Product Data
- getProduct
- getProductDateModified
- getProductSellable
- getProductDateModified
- Inventory Interface Standards
- getFilterValues
- getInventoryLevels
- Media Content Standards
- getMediaContent
- getMediaDateModified
- Order Shipment Notification
- getOrderShipmentNotification
- Product Configuration, Decoration, and Pricing
- getAvailableLocations
- getDecorationColors
- getFobPoints
- getAvailableCharges
- GetConfigurationAndPricing
- Order Status Standards
- getOrderStatusDetails
- getOrderStatusTypes
- Purchase Order
- sendPO
- getSupportedOrderTypes
Meta API
- Get List of Companies
- Get List of Service Types
- Get List of Services
- Get Endpoint:
- Get List of Endpoints by Company
- Get Endpoint by Company and Service Type
- Get Endpoint by Version, Company and Service Type
- Get Stats
Other features
- Initialise a client with supplier information
- Choose JSON or XML Response
- Support Promise & callback interface
- Use Meta API responses in Service API requests
0.1.11
3 days ago
0.1.7
4 days ago
0.1.9
4 days ago
0.1.6
4 days ago
0.1.4
9 months ago
0.1.5
9 months ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.3
2 years ago
0.0.12
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
5 years ago