有没有人使用RocketShipIt API?我目前正在与FedEx网络服务进行一些整合,但在提交货件和创建标签之前,似乎无法找到传递服务参数的位置。
我按照以下方式创建货件,如RocketShipIt文档中所述:
$shipment = new \RocketShipIt\Shipment('fedex', 'FIRST_OVERNIGHT');
$shipment->setParameter('toCompany', 'John Doe');
$shipment->setParameter('toName', 'John Doe');
$shipment->setParameter('toPhone', '1231231234');
$shipment->setParameter('toAddr1', '111 W Legion');
$shipment->setParameter('toCity', 'Whitehall');
$shipment->setParameter('toState', 'MT');
$shipment->setParameter('toCode', '59759');
$shipment->setParameter('length', '5');
$shipment->setParameter('width', '5');
$shipment->setParameter('height', '5');
$shipment->setParameter('weight','5');
//$shipment->setParameter('service', 'FIRST_OVERNIGHT');
$response = $shipment->submitShipment();