快递鸟 (kdniao.com) 非官方 Java SDK
添加 JitPack Repository 到 pom.xml
:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
添加 Kdniao SDK 到 pom.xml
:
<dependencies>
<dependency>
<groupId>com.github.muxfe</groupId>
<artifactId>kdniao-sdk</artifactId>
<version>11c9a7ad8b</version>
</dependency>
</dependencies>
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").
logisticCode("118650888018").
build();
TrackResult result = kdniaoService.track(parameters);