中国邮政包裹物流信息查询,适用产品E邮宝、E包裹、E特快、国际EMS
Install via composer
$ composer require slince/shipment-tracking-ems
$tracker = new Slince\ShipmentTracking\EMS\EMSTracker(AUTHENTICATE, 'en');
try {
$shipment = $tracker->track('CNAQV100168101');
print_r($shipment->getEvents()); //print the shipment events
} catch (Slince\ShipmentTracking\Exception\TrackException $exception) {
exit('Track error: ' . $exception->getMessage());
}
注意:该库并不支持查询国内EMS包裹信息,相关文档主页http://shipping.ems.com.cn/apiIndex
The MIT license. See MIT