Coder Social home page Coder Social logo

kdniao-sdk's Introduction

kdniao-sdk

快递鸟 (kdniao.com) 非官方 Java SDK

目前支持的 API

Maven 安装

添加 JitPack Repository 到 pom.xml:

<repository>
	<id>nutz</id>
	<url>http://jfrog.nutz.cn/artifactory/libs-release</url>
</repository>
<repository>
	<id>nutz-snapshots</id>
	<url>http://jfrog.nutz.cn/artifactory/snapshots</url>
	<snapshots>
		<enabled>true</enabled>
		<updatePolicy>always</updatePolicy>
	</snapshots>
	<releases>
	<enabled>false</enabled>
	</releases>
</repository>

添加 Kdniao SDK 到 pom.xml:

  <dependency>
    <groupId>com.github.muxfe.contrib</groupId>
  	<artifactId>kdniao-sdk</artifactId>
  	<version>1.0.1</version>
  </dependency>

使用

KdniaoConfiguration kdniaoConfiguration =
  KdniaoConfiguration.builder().
    eBusinessID("YOUR E_BUSINESS_ID").
    appKey("YOUR APP_KEY").
    build();

KdniaoService kdniaoService =
  new KdniaoServiceImpl(kdniaoConfiguration);

TrackParameters parameters =
  TrackParameters.builder().
      shipperCode("SF").
      customerName("收件人/发件人 手机后4位").
      logisticCode("118650888018").
      build();

TrackResult result = kdniaoService.track(parameters);


RecogniseParameters parameters =
  RecogniseParameters.builder().
      logisticCode("118650888018").
      build();

RecogniseResult result = kdniaoService.recognise(parameters);

FollowParameters parameters =
  FollowParameters.builder().
      shipperCode("SF").
      logisticCode("118650888018").
      build();

FollowResult result = kdniaoService.follow(parameters);

License

MIT

kdniao-sdk's People

Contributors

rekoe avatar airt avatar

Watchers

James Cloos avatar

Forkers

sucao521

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.