以前寫了一段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 |