📜  php中dhl api集成 - 创建一个货件 - PHP代码示例

📅  最后修改于: 2022-03-11 14:54:10.931000             🧑  作者: Mango

代码示例1
$shipment = $dhlparcel->shipments->create($parcel);

$shipment->id;
// For shipments with multiple pieces:
$shipment->pieces->each(function ($item) {
    $item->label_id;
    $item->barcode;
})
// For a shipment with one single piece:
$shipment->label_id;
$shipment->barcode;