1.0.0 • Published 7 years ago

mslpsapi v1.0.0

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

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

ClassMethodHTTP requestDescription
Mslpsapi.FreightApifreightCalcFreightPOST /api/Freight/CalcFreight计算运费
Mslpsapi.FreightApifreightGetAllTemplateGET /api/Freight/GetAllTemplate获取所有运费模版
Mslpsapi.LogisticsApilogisticsDeleteChannelInfoPOST /api/Logistics/DeleteChannelInfo根据标识和渠道编码删除渠道信息
Mslpsapi.LogisticsApilogisticsDeleteCofigsPOST /api/Logistics/DeleteCofigs根据物流标识删除配置信息
Mslpsapi.LogisticsApilogisticsGetChannelInfoGET /api/Logistics/GetChannelInfo根据物流标识及渠道编码获取渠道信息
Mslpsapi.LogisticsApilogisticsGetConfigGET /api/Logistics/GetConfig根据物流标识获取配置信息
Mslpsapi.LogisticsApilogisticsRefreshLogisticsNoPOST /api/Logistics/RefreshLogisticsNo根据提交单号更新物流单号并记录物流信息
Mslpsapi.LogisticsApilogisticsSaveChannelInfoPOST /api/Logistics/SaveChannelInfo保存渠道信息
Mslpsapi.LogisticsApilogisticsSaveConfigPOST /api/Logistics/SaveConfig保存配置信息
Mslpsapi.LogisticsApilogisticsSubMitPOST /api/Logistics/SubMit提交物流并记录提交结果
Mslpsapi.LogsiticsCompanyApilogsiticsCompanyGetAllLogisticsCompaniesGET /api/LogsiticsCompany/GetAllLogisticsCompanies获取所有物流公司信息
Mslpsapi.LogsiticsCompanyApilogsiticsCompanyGetChannelsGET /api/LogsiticsCompany/GetChannels根据物流标识和物流公司配置信息获取渠道列表
Mslpsapi.LogsiticsCompanyApilogsiticsCompanyGetConfigsGET /api/LogsiticsCompany/GetConfigs根据物流标识获取物流公司配置信息
Mslpsapi.PrintApiprintPrintPOST /api/Print/Print一键打印

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.