以前写了一段ASP版本的使用UPS Online Tools API的代码,下面的是Google Code 里找到的PHP版本模块。
ASP版地址: http://hi.baidu.com/hsg4ok/blog/item/f9d5c695016c5a49d0135e7c.html(现在百度空间已经被无辜的封掉了) Modules written in PHP to help communicate with UPS shipping API AboutMark has already written code that calculates UPS shipping rates using the API. This was the first implementation. Now we have a great team of developers that are working hard to bring you a complete framework for all of the UPS services. The plan for this project is to create reusable code for use with all of the UPS shipping tools through thier XML API. This project will eventually cover all of these UPS API tools.
StatusUsageRequirementsPHP4 or PHP5 with cURL(libcurl) installed and enabled. UPS Rate Selectionrequire("upsRate.php");
UPS Trackingrequire("upsTrack.php");
Beta Codehttp://ups-php.googlecode.com/svn/trunk/ We are working diligently on the next version and want to make it a complete implementation of the UPS API. This is a very active project so check back often. UPS-PHP-v0.2.tar.gz UPS-PHP-v0.2.zip |