mslpsapi v1.0.0
mslpsapi
Mslpsapi - JavaScript client for mslpsapi No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:
- API version: v1
- Package version: v1
- Build date: 2017-05-08T14:38:08.568+08:00
- 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 mslpsapi --save
git
If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --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 Mslpsapi = require('mslpsapi');
var api = new Mslpsapi.FreightApi()
var channelCode = "channelCode_example"; // {String} 渠道编码
var orderPrice = 1.2; // {Number} 价格
var weigth = 1.2; // {Number} 重量
var countryCode = "countryCode_example"; // {String} 国家编码
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.freightCalcFreight(channelCode, orderPrice, weigth, countryCode, callback);
Documentation for API Endpoints
All URIs are relative to http://192.168.1.80/lps
Class | Method | HTTP request | Description |
---|---|---|---|
Mslpsapi.FreightApi | freightCalcFreight | POST /api/Freight/CalcFreight | 计算运费 |
Mslpsapi.FreightApi | freightGetAllTemplate | GET /api/Freight/GetAllTemplate | 获取所有运费模版 |
Mslpsapi.LogisticsApi | logisticsDeleteChannelInfo | POST /api/Logistics/DeleteChannelInfo | 根据标识和渠道编码删除渠道信息 |
Mslpsapi.LogisticsApi | logisticsDeleteCofigs | POST /api/Logistics/DeleteCofigs | 根据物流标识删除配置信息 |
Mslpsapi.LogisticsApi | logisticsGetChannelInfo | GET /api/Logistics/GetChannelInfo | 根据物流标识及渠道编码获取渠道信息 |
Mslpsapi.LogisticsApi | logisticsGetConfig | GET /api/Logistics/GetConfig | 根据物流标识获取配置信息 |
Mslpsapi.LogisticsApi | logisticsRefreshLogisticsNo | POST /api/Logistics/RefreshLogisticsNo | 根据提交单号更新物流单号并记录物流信息 |
Mslpsapi.LogisticsApi | logisticsSaveChannelInfo | POST /api/Logistics/SaveChannelInfo | 保存渠道信息 |
Mslpsapi.LogisticsApi | logisticsSaveConfig | POST /api/Logistics/SaveConfig | 保存配置信息 |
Mslpsapi.LogisticsApi | logisticsSubMit | POST /api/Logistics/SubMit | 提交物流并记录提交结果 |
Mslpsapi.LogsiticsCompanyApi | logsiticsCompanyGetAllLogisticsCompanies | GET /api/LogsiticsCompany/GetAllLogisticsCompanies | 获取所有物流公司信息 |
Mslpsapi.LogsiticsCompanyApi | logsiticsCompanyGetChannels | GET /api/LogsiticsCompany/GetChannels | 根据物流标识和物流公司配置信息获取渠道列表 |
Mslpsapi.LogsiticsCompanyApi | logsiticsCompanyGetConfigs | GET /api/LogsiticsCompany/GetConfigs | 根据物流标识获取物流公司配置信息 |
Mslpsapi.PrintApi | printPrint | POST /api/Print/Print | 一键打印 |
Documentation for Models
- Mslpsapi.AccessibleElementId
- Mslpsapi.AcroFields
- Mslpsapi.AcroFieldsSearch
- Mslpsapi.Address
- Mslpsapi.Annotation
- Mslpsapi.BaseColor
- Mslpsapi.BaseFont
- Mslpsapi.BaseResponseResult
- Mslpsapi.ByteBuffer
- Mslpsapi.Chunk
- Mslpsapi.ColumnText
- Mslpsapi.ConfigInfo
- Mslpsapi.FieldInformation
- Mslpsapi.Font
- Mslpsapi.ICCProfile
- Mslpsapi.IDrawInterface
- Mslpsapi.IElement
- Mslpsapi.IPdfOCG
- Mslpsapi.IPdfPCellEvent
- Mslpsapi.IPdfPTableEvent
- Mslpsapi.IPdfPageEvent
- Mslpsapi.IXmpMeta
- Mslpsapi.Image
- Mslpsapi.InverseStore
- Mslpsapi.Item
- Mslpsapi.Order
- Mslpsapi.OrderInfo
- Mslpsapi.OutputStreamCounter
- Mslpsapi.PRAcroForm
- Mslpsapi.PRIndirectReference
- Mslpsapi.PdfAcroForm
- Mslpsapi.PdfCollection
- Mslpsapi.PdfCollectionSchema
- Mslpsapi.PdfCollectionSort
- Mslpsapi.PdfContentByte
- Mslpsapi.PdfDictionary
- Mslpsapi.PdfDocument
- Mslpsapi.PdfIndirectReference
- Mslpsapi.PdfName
- Mslpsapi.PdfOCProperties
- Mslpsapi.PdfObject
- Mslpsapi.PdfOutline
- Mslpsapi.PdfPCell
- Mslpsapi.PdfPHeaderCell
- Mslpsapi.PdfPRow
- Mslpsapi.PdfPTable
- Mslpsapi.PdfPageLabels
- Mslpsapi.PdfReader
- Mslpsapi.PdfStructureTreeRoot
- Mslpsapi.PdfTemplate
- Mslpsapi.PdfTransition
- Mslpsapi.PdfTransparencyGroup
- Mslpsapi.PdfWriter
- Mslpsapi.PrintInfo
- Mslpsapi.ProductInfo
- Mslpsapi.RandomAccessFileOrArray
- Mslpsapi.Rectangle
- Mslpsapi.TabSettings
- Mslpsapi.TabStop
- Mslpsapi.TextField
- Mslpsapi.XfaForm
- Mslpsapi.Xml2SomDatasets
- Mslpsapi.Xml2SomTemplate
- Mslpsapi.XmpWriter
Documentation for Authorization
All endpoints do not require authorization.
7 years ago