jonathanwkelly / ups-shipping-rate
这是一个非常简单的类,使用UPS网络服务来获取运费。基本上,您需要传入您想使用的运输方式、目的地/发货人邮编、包裹尺寸,然后接收一个运费报价。XML请求中有许多值是硬编码的
dev-master
2013-08-08 09:19 UTC
This package is not auto-updated.
Last update: 2024-09-28 14:12:55 UTC
README
This is a very simple class that uses the UPS web service to get a shipping rate. Basically, you pass it the shipping method you'd like to use, the destination / shipper zip codes, the package dimensions, and receive a shipping quote. There are plenty of values that are hard-coded in the XML request that could be passed in dynamically for a more robust rating process. WHAT YOU'LL NEED ============================================================================================= [1] A UPS account [2] A UPS online account (get one here: https://www.ups.com/one-to-one/register) Once you create your online account, you'll need to link your UPS account to the online account. [3] An API key